From 92970a83d6659494fd66232c82ae32eaa9e2ab27 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Nov 2017 23:14:19 +0100 Subject: [PATCH] setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 146c87069..9d1d95713 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