diff --git a/setup.py b/setup.py index 146c870699..9d1d95713e 100755 --- a/setup.py +++ b/setup.py @@ -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