Commit af5cab34 authored by Netzdenunziant's avatar Netzdenunziant Committed by GitHub

Stop draining guest sessions

parent 01daa105
...@@ -189,8 +189,7 @@ class TwitterSession: ...@@ -189,8 +189,7 @@ class TwitterSession:
result = await r.json() result = await r.json()
except Exception as e: except Exception as e:
debug("EXCEPTION: " + str(type(e))) debug("EXCEPTION: " + str(type(e)))
if self.username is None: debug("EXCEPTION text: " + str(e))
await self.login_guest()
raise e raise e
self.monitor_rate_limit(r.headers) self.monitor_rate_limit(r.headers)
if self.username is None and self.remaining < 10 or is_error(result, 88) or is_error(result, 239): if self.username is None and self.remaining < 10 or is_error(result, 88) or is_error(result, 239):
......
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