From ed0644159ff1a24d073ff893a6a5a912310c38c7 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 17 Dec 2020 16:30:38 +0100 Subject: apply style fixes --- fuzzycat/matching.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'fuzzycat') 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) -- cgit v1.2.3