Commit 573fa6c5 authored by Francesco Poldi's avatar Francesco Poldi

Updated exit calls

parent bcbd8f49
...@@ -94,7 +94,8 @@ class Twint: ...@@ -94,7 +94,8 @@ class Twint:
exit(str(e)) exit(str(e))
except Exception as e: except Exception as e:
if self.config.Profile or self.config.Favorites: if self.config.Profile or self.config.Favorites:
exit("[!] Twitter does not return more data, scrape stops here.") print("[!] Twitter does not return more data, scrape stops here.")
return
logme.critical(__name__+':Twint:Feed:noData' + str(e)) logme.critical(__name__+':Twint:Feed:noData' + str(e))
# Sometimes Twitter says there is no data. But it's a lie. # Sometimes Twitter says there is no data. But it's a lie.
self.consecutive_errors_count += 1 self.consecutive_errors_count += 1
...@@ -103,8 +104,9 @@ class Twint: ...@@ -103,8 +104,9 @@ class Twint:
time.sleep(5) time.sleep(5)
await self.Feed() await self.Feed()
logme.critical(__name__+':Twint:Feed:Tweets_known_error:' + str(e)) logme.critical(__name__+':Twint:Feed:Tweets_known_error:' + str(e))
exit(str(e) + " [x] run.Feed\n"+ print(str(e) + " [x] run.Feed\n"+
"[!] if get this error but you know for sure that more tweets exist, please open an issue and we will investigate it!") "[!] if get this error but you know for sure that more tweets exist, please open an issue and we will investigate it!")
return
async def follow(self): async def follow(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment