Commit a658326a authored by Francesco Poldi's avatar Francesco Poldi

Basically just wait if TwitterSearch breaks

parent b94c64d8
......@@ -96,7 +96,7 @@ class Twint:
# Sometimes Twitter says there is no data. But it's a lie.
self.consecutive_errors_count += 1
if self.consecutive_errors_count < self.config.Retries_count:
self.user_agent = await get.RandomUserAgent()
self.user_agent = await get.RandomUserAgent(wa=True if self.config.TwitterSearch else False)
time.sleep(5)
await self.Feed()
logme.critical(__name__+':Twint:Feed:Tweets_known_error:' + str(e))
......
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