From a8ae093452f30c995d34aa948f6a38d39a5b8930 Mon Sep 17 00:00:00 2001 From: Kilian Lieret Date: Sun, 14 May 2023 13:32:04 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Fix=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ankipandas/paths.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ankipandas/paths.py b/ankipandas/paths.py index 4b64c3a..6bc69bb 100644 --- a/ankipandas/paths.py +++ b/ankipandas/paths.py @@ -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