Fix indentation

This commit is contained in:
jeancf 2023-07-13 15:44:37 +02:00
parent 29c7457644
commit a4f3934d86

View File

@ -201,8 +201,8 @@ Only used by `get_timeline()`.
:return: List of tweets from the thread
"""
def _get_rest_of_thread(session, headers, url):
logging.debug("Downloading tweets in thread from separate page")
# Download page with thread
logging.debug("Downloading tweets in thread from separate page")
# Download page with thread
try:
thread_page = session.get(url, headers=headers, timeout=HTTPS_REQ_TIMEOUT)
except requests.exceptions.ConnectionError:
@ -214,8 +214,7 @@ def _get_rest_of_thread(session, headers, url):
# Verify that download worked
if thread_page.status_code != 200:
logging.fatal('The Nitter page did not download correctly from ' + url + ' (' + str(
thread_page.status_code) + '). Aborting')
logging.fatal('The Nitter page did not download correctly from ' + url + ' (' + str(thread_page.status_code) + '). Aborting')
shutdown(-1)
logging.debug('Nitter page downloaded successfully from ' + url)