From 636820afb8341e6e225e414ff2c0310a93ad638a Mon Sep 17 00:00:00 2001 From: Senko-san Date: Sun, 14 Jun 2026 01:01:33 +0300 Subject: [PATCH] fix: invalid Python 2 except syntax in AcoustID client The except clause used the Python 2 multi-exception syntax, which is a SyntaxError under Python 3.14 and broke import of this module. --- app/infrastructure/metadata/acoustid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/infrastructure/metadata/acoustid.py b/app/infrastructure/metadata/acoustid.py index 11fcbf4..dd3f063 100644 --- a/app/infrastructure/metadata/acoustid.py +++ b/app/infrastructure/metadata/acoustid.py @@ -78,7 +78,7 @@ class AcoustIdHttpClient: ) resp.raise_for_status() return resp.json() # type: ignore[no-any-return] - except httpx.HTTPError, ValueError: + except (httpx.HTTPError, ValueError): log.warning("acoustid_lookup_failed") return None