🛠️ Ruff errors refactored.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user