mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
catch profile rename error in non-English locales
This commit is contained in:
parent
1e9fb6ab29
commit
bf6e10ec88
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ details have been forgotten."""))
|
||||||
os.rename(oldFolder, newFolder)
|
os.rename(oldFolder, newFolder)
|
||||||
except WindowsError as e:
|
except WindowsError as e:
|
||||||
self.db.rollback()
|
self.db.rollback()
|
||||||
if "Access is denied" in str(e):
|
if "WinError 5" in str(e):
|
||||||
showWarning(_("""\
|
showWarning(_("""\
|
||||||
Anki could not rename your profile because it could not rename the profile \
|
Anki could not rename your profile because it could not rename the profile \
|
||||||
folder on disk. Please ensure you have permission to write to Documents/Anki \
|
folder on disk. Please ensure you have permission to write to Documents/Anki \
|
||||||
|
|
Loading…
Reference in a new issue