From 1abdbc5355edb8135d8f7a1c3f20141104ee2742 Mon Sep 17 00:00:00 2001 From: Chris Pickett Date: Thu, 2 Jan 2025 14:03:18 -0700 Subject: [PATCH] Fix syntax errors in f-string outputs --- pywaybackup/Exception.py | 4 ++-- pywaybackup/archive.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pywaybackup/Exception.py b/pywaybackup/Exception.py index fb1486b..34dc93f 100644 --- a/pywaybackup/Exception.py +++ b/pywaybackup/Exception.py @@ -59,7 +59,7 @@ def exception(cls, message: str, e: Exception, tb=None): cls.new_debug = False f = open(debug_file, "w") f.write("-------------------------\n") - f.write(f"Version: {version("pywaybackup")}\n") + f.write(f"Version: {version('pywaybackup')}\n") f.write("-------------------------\n") f.write(f"Command: {cls.command}\n") f.write("-------------------------\n\n") @@ -105,4 +105,4 @@ def exception_handler(exception_type, exception, traceback): sys.__excepthook__(exception_type, exception, traceback) return Exception.exception("UNCAUGHT EXCEPTION", exception, traceback) # uncaught exceptions also with custom scheme - \ No newline at end of file + diff --git a/pywaybackup/archive.py b/pywaybackup/archive.py index 59dbe72..4843bad 100644 --- a/pywaybackup/archive.py +++ b/pywaybackup/archive.py @@ -86,7 +86,7 @@ def save_page(url: str): def startup(): try: - vb.write(message=f"\n<<< python-wayback-machine-downloader v{version("pywaybackup")} >>>") + vb.write(message=f"\n<<< python-wayback-machine-downloader v{version('pywaybackup')} >>>") if Database.QUERY_EXIST: vb.write(message=f"\nExisting query snapshots processed: {Database.QUERY_PROGRESS}\nResuming download... (to reset the job use '--reset')\n")