Commit 56af8d43 authored by Your Name's avatar Your Name

add await

parent 2004793b
...@@ -185,7 +185,7 @@ class TwitterSession: ...@@ -185,7 +185,7 @@ class TwitterSession:
self.set_csrf_header() self.set_csrf_header()
await self.refresh_old_token() await self.refresh_old_token()
try: try:
async with 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()
except Exception as e: except Exception as e:
debug("EXCEPTION: " + str(type(e))) debug("EXCEPTION: " + str(type(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