This commit is contained in:
Fabio Manganiello 2017-11-03 23:14:19 +01:00
parent 98bfb5d2a3
commit 92970a83d6
1 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,9 @@ def create_etc_dir():
try:
os.makedirs(path)
except OSError as e:
if isinstance(e, PermissionError) \
or e.errno == errno.EEXIST and os.path.isdir(path):
if isinstance(e, PermissionError):
print('WARNING: Could not create /etc/runbullet')
elif e.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise