We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f6c5f2 + 270375d commit 69f0f82Copy full SHA for 69f0f82
1 file changed
client/deis.py
@@ -201,8 +201,13 @@ def save(self):
201
Serialize and save settings to the filesystem
202
"""
203
data = json.dumps(dict(self))
204
- with open(self._path, 'w') as f:
205
- f.write(data)
+ try:
+ with open(self._path, 'w') as f:
206
+ f.write(data)
207
+ except IOError:
208
+ self._logger.error("Could not write to settings file at '~/.deis/client.json'. \
209
+Do you have the right file permissions?")
210
+ sys.exit(1)
211
return data
212
213
0 commit comments