WindowsError may not be defined

This commit is contained in:
Damien Elmes 2019-03-04 12:29:55 +10:00
parent dfbbeab8db
commit e91901911f

View File

@ -227,7 +227,7 @@ details have been forgotten."""))
# rename folder
try:
os.rename(oldFolder, newFolder)
except WindowsError as e:
except Exception as e:
self.db.rollback()
if "WinError 5" in str(e):
showWarning(_("""\