WindowsError may not be defined
This commit is contained in:
parent
dfbbeab8db
commit
e91901911f
@ -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(_("""\
|
||||
|
Loading…
Reference in New Issue
Block a user