cleanup auto_archive and config

This commit is contained in:
msramalho
2022-06-03 18:03:49 +02:00
parent aaa1d299da
commit 5135e97d3f
6 changed files with 75 additions and 127 deletions

View File

@@ -13,7 +13,8 @@ def expand_url(url):
if 'https://t.co/' in url:
try:
r = requests.get(url)
url = r.url
logger.debug(f'Expanded url {url} to {r.url}')
return r.url
except:
logger.error(f'Failed to expand url {url}')
return url