aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzycat')
-rw-r--r--fuzzycat/matching.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py
index 55a5833..d962255 100644
--- a/fuzzycat/matching.py
+++ b/fuzzycat/matching.py
@@ -64,7 +64,13 @@ def match_release_fuzzy(
value = getattr(ext_ids, attr)
if not value:
continue
- r = api.lookup_release(**{attr: value})
+ try:
+ r = api.lookup_release(**{attr: value})
+ except fatcat_openapi_client.rest.ApiException as err:
+ if err.status in [404, 400]:
+ r = None
+ else:
+ raise err
if r:
return [r]