Commit 777d7476 authored by Your Name's avatar Your Name

what

parent 56af8d43
...@@ -185,8 +185,10 @@ class TwitterSession: ...@@ -185,8 +185,10 @@ class TwitterSession:
self.set_csrf_header() self.set_csrf_header()
await self.refresh_old_token() await self.refresh_old_token()
try: try:
async with await self._session.get(url, headers=self._headers) as r: # async with await self._session.get(url, headers=self._headers) as r:
result = await r.json() # result = await r.json()
r = await self._session.get(url, headers=self._headers)
result = await r.json()
except Exception as e: except Exception as e:
debug("EXCEPTION: " + str(type(e))) debug("EXCEPTION: " + str(type(e)))
debug("EXCEPTION text: " + str(e)) debug("EXCEPTION text: " + 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