Skip to content

Commit

Permalink
FileExistsError is not in Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortal committed May 1, 2015
1 parent 1592c8e commit e7ba25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emailtunnel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _sanity_log_invalid(self, message):
basename = os.path.join(dirname, now_string())
try:
os.mkdir(dirname)
except FileExistsError:
except OSError:
pass
with open(basename + '.in', 'ab') as fp:
fp.write(message)
Expand Down

0 comments on commit e7ba25d

Please sign in to comment.