From 12cccddba6eac3431242806787d63a3910fa93ed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Oct 2024 08:38:20 +0530 Subject: [PATCH] Sigh, old python --- src/calibre/ebooks/metadata/sources/search_engines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/metadata/sources/search_engines.py b/src/calibre/ebooks/metadata/sources/search_engines.py index d00c8ac268..2ef4220336 100644 --- a/src/calibre/ebooks/metadata/sources/search_engines.py +++ b/src/calibre/ebooks/metadata/sources/search_engines.py @@ -31,7 +31,7 @@ from calibre.ebooks.chardet import xml_to_unicode from calibre.utils.lock import ExclusiveFile from calibre.utils.random_ua import accept_header_for_ua -current_version = (1, 2, 11) +current_version = (1, 2, 12) minimum_calibre_version = (2, 80, 0) webcache = {} webcache_lock = Lock() @@ -146,7 +146,7 @@ def wayback_machine_cached_url(url, br=None, log=prints, timeout=60): data = query(br, 'https://archive.org/wayback/available?url=' + q, 'wayback', parser=json.loads, limit=0.25, timeout=timeout) except Exception as e: - log(f'Wayback machine query failed for url: {url} with error: {e}') + log('Wayback machine query failed for url: ' + url + ' with error: ' + str(e)) return None try: closest = data['archived_snapshots']['closest']