aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-17 16:30:38 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-17 16:30:38 +0100
commited0644159ff1a24d073ff893a6a5a912310c38c7 (patch)
treec79a412cd7ae9e3dfee55eb3579ad2e4d67e52ed /fuzzycat
parent5526d497c9f7805b7b68e6c763afe48c9b56a5ca (diff)
downloadfuzzycat-ed0644159ff1a24d073ff893a6a5a912310c38c7.tar.gz
fuzzycat-ed0644159ff1a24d073ff893a6a5a912310c38c7.zip
apply style fixes
Diffstat (limited to 'fuzzycat')
-rw-r--r--fuzzycat/matching.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py
index 4e60ab2..d840059 100644
--- a/fuzzycat/matching.py
+++ b/fuzzycat/matching.py
@@ -1,7 +1,7 @@
import os
import re
import sys
-from typing import List, Type, Union, Optional
+from typing import List, Optional, Type, Union
import elasticsearch
import elasticsearch_dsl
@@ -125,9 +125,7 @@ def retrieve_entity_list(
result.append(re)
except ApiException as exc:
if exc.status == 404:
- print("[err] failed to retrieve release entity: {}".format(
- id),
- file=sys.stderr)
+ print("[err] failed to retrieve release entity: {}".format(id), file=sys.stderr)
else:
print("[err] api failed with {}: {}".format(exc.status, exc.message),
file=sys.stderr)
@@ -138,10 +136,8 @@ def retrieve_entity_list(
result.append(re)
except ApiException as exc:
if exc.status == 404:
- print(
- "[err] failed to retrieve container entity: {}".format(
- id),
- file=sys.stderr)
+ print("[err] failed to retrieve container entity: {}".format(id),
+ file=sys.stderr)
else:
print("[err] api failed with {}: {}".format(exc.status, exc.message),
file=sys.stderr)