Implementing ruff suggestions.

This commit is contained in:
erinhmclark
2025-03-10 21:45:30 +00:00
parent ca44a40b88
commit e7fa88f1c7
16 changed files with 36 additions and 48 deletions

View File

@@ -21,7 +21,7 @@ def expand_url(url):
r = requests.get(url)
logger.debug(f"Expanded url {url} to {r.url}")
return r.url
except:
except Exception:
logger.error(f"Failed to expand url {url}")
return url
@@ -32,7 +32,7 @@ def getattr_or(o: object, prop: str, default=None):
if res is None:
raise
return res
except:
except Exception:
return default