mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-17 13:58:11 +00:00
Improved error message and removed nitter mirror
This commit is contained in:
parent
fe145525ab
commit
29cf330699
3
twoot.py
3
twoot.py
|
@ -37,7 +37,6 @@ import shutil
|
||||||
NITTER_URLS = [
|
NITTER_URLS = [
|
||||||
'https://nitter.42l.fr',
|
'https://nitter.42l.fr',
|
||||||
'https://nitter.pussthecat.org',
|
'https://nitter.pussthecat.org',
|
||||||
'https://nitter.nixnet.services',
|
|
||||||
'https://nitter.fdn.fr',
|
'https://nitter.fdn.fr',
|
||||||
'https://nitter.unixfox.eu',
|
'https://nitter.unixfox.eu',
|
||||||
'https://nitter.eu',
|
'https://nitter.eu',
|
||||||
|
@ -338,7 +337,7 @@ def main(argv):
|
||||||
|
|
||||||
# Verify that download worked
|
# Verify that download worked
|
||||||
if twit_account_page.status_code != 200:
|
if twit_account_page.status_code != 200:
|
||||||
logging.fatal('The Nitter page did not download correctly from ' + url + '. Aborting')
|
logging.fatal('The Nitter page did not download correctly from ' + url + ' (' + twit_account_page.status_code + '). Aborting')
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
logging.info('Nitter page downloaded successfully from ' + url)
|
logging.info('Nitter page downloaded successfully from ' + url)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user