This commit is contained in:
msramalho
2023-07-28 10:49:39 +01:00
parent 1b44a302cd
commit fc93ebaba0
3 changed files with 2 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ def expand_url(url):
logger.error(f'Failed to expand url {url}')
return url
def getattr_or(o: object, prop: str, default=None):
try:
res = getattr(o, prop)