Merging master
This commit is contained in:
BuildTools 2021-10-16 19:29:28 +02:00
commit 735503c1b1

View File

@ -328,7 +328,11 @@ def main(argv):
url += '/with_replies'
# Download twitter page of user.
twit_account_page = session.get(url, headers=headers)
try:
twit_account_page = session.get(url, headers=headers)
except requests.exceptions.ConnectionError:
logging.fatal('Host did not respond when trying to download ' + url)
exit(-1)
# Verify that download worked
if twit_account_page.status_code != 200: