Database error is more detailed

renamed debug_or_exception to error_or_exception
This commit is contained in:
Ozzie Isaacs
2022-03-12 17:14:54 +01:00
parent 2b31b6a306
commit 4379669cf8
15 changed files with 76 additions and 71 deletions

View File

@@ -105,7 +105,7 @@ class Amazon(Metadata):
match.cover = ""
return match, index
except Exception as e:
log.debug_or_exception(e)
log.error_or_exception(e)
return
val = list()
@@ -126,5 +126,5 @@ class Amazon(Metadata):
result = list(filter(lambda x: x, val))
return [x[0] for x in sorted(result, key=itemgetter(1))] #sort by amazons listing order for best relevance
except requests.exceptions.HTTPError as e:
log.debug_or_exception(e)
log.error_or_exception(e)
return []