From eaa344abca2b2e7544842b1411370519e0681acf Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 16 Jul 2017 22:57:28 +0200 Subject: [PATCH] Update main.py --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index d9426a28..e74bc71c 100644 --- a/src/main.py +++ b/src/main.py @@ -32,14 +32,14 @@ if not os.path.isdir(config.log_dir): os.mkdir(config.log_dir) try: os.chmod(config.log_dir, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR) - except Exception, err: + except Exception as err: print "Can't change permission of %s: %s" % (config.log_dir, err) if not os.path.isdir(config.data_dir): os.mkdir(config.data_dir) try: os.chmod(config.data_dir, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR) - except Exception, err: + except Exception as err: print "Can't change permission of %s: %s" % (config.data_dir, err) if not os.path.isfile("%s/sites.json" % config.data_dir):