🛠️ Ruff errors refactored.

This commit is contained in:
Robert Honz
2024-01-12 11:41:12 +01:00
parent 677bca872e
commit cae24ba81d
+3 -3
View File
@@ -160,9 +160,9 @@ class Metadata:
if url: if url:
try: try:
result = requests.get(url, timeout=REQUESTS_TIMEOUT_SEC).content result = requests.get(url, timeout=REQUESTS_TIMEOUT_SEC).content
except: except Exception as e:
# TODO: Implement logging. # TODO: Implement propper logging.
pass print(e)
elif path_file: elif path_file:
try: try:
with open(path_file, "rb") as f: with open(path_file, "rb") as f: