Skip to content

Commit

Permalink
🚸 Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed May 14, 2023
1 parent dedd1fc commit a8ae093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ankipandas/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ def get_anki_backup_folder(path: str | PurePath, nexist="raise") -> Path:
backup_folder = path.parent / "backups"
if nexist == "raise" and not backup_folder.is_dir():
raise ValueError(
"Anki backup folder corresponding to database at {} doesn't seem"
" to exist. Perhaps you can specify a custom back "
"folder?".format(path)
f"Anki backup folder corresponding to database at {path} doesn't seem"
" to exist. Perhaps you can specify a custom backup "
"folder?"
)
return backup_folder

Expand Down

0 comments on commit a8ae093

Please sign in to comment.