mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-20 16:08:07 -04:00
Use syntax that works on both py2.7 and py3
This commit is contained in:
parent
80916e6884
commit
239badea9b
8 changed files with 10 additions and 10 deletions
|
@ -104,7 +104,7 @@ class Config(object):
|
|||
dir_path = cls.abspath(dir_path)
|
||||
try:
|
||||
os.makedirs(dir_path)
|
||||
except OSError, e:
|
||||
except OSError as e:
|
||||
if e.errno != errno.EEXIST:
|
||||
raise
|
||||
if not os.path.isdir(dir_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue