mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Fix indentation
This commit is contained in:
parent
29c7457644
commit
a4f3934d86
7
twoot.py
7
twoot.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user