We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841cca0 commit 9665e87Copy full SHA for 9665e87
manatools/config.py
@@ -52,15 +52,17 @@ def _load(self) :
52
try:
53
f = os.path.join(loc, self._fileName)
54
with open(f, 'r') as ymlfile:
55
- self._systemSettings = yaml.load(ymlfile)
+ self._systemSettings = yaml.safe_load(ymlfile)
56
break
57
except IOError as e:
58
print ("Skipped exception: <%s> " % str(e))
59
pass
60
61
62
with open(self._userPrfesPathName, 'r') as ymlfile:
63
- self._userPrefs = yaml.load(ymlfile)
+ self._userPrefs = yaml.safe_load(ymlfile)
64
+ if not self._userPrefs:
65
+ self._userPrefs = {}
66
67
68
0 commit comments