Remove redundant else blocks

This commit is contained in:
flan
2017-11-08 13:23:48 +01:00
parent c0ea23c307
commit aae65cc5d8
3 changed files with 49 additions and 54 deletions

View File

@@ -51,9 +51,7 @@ class CollectionWrapper:
try:
os.makedirs(dirname)
except OSError as exc:
if exc.errno == errno.EEXIST:
pass
else:
if exc.errno != errno.EEXIST:
raise
col = anki.storage.Collection(self.path, server=True)