Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions botan_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def track(token, uid, message, name='Message', loop=None):
with aiohttp.ClientSession(loop=loop) as session:
async with session.post(TRACK_URL, params=params, data=data, headers=headers) as resp:
return await resp.json()
except (aiohttp.errors.ClientError, ValueError) as e:
except (aiohttp.client_exceptions.ClientError, ValueError) as e:
print(e)
return False

Expand All @@ -37,6 +37,6 @@ async def shorten_url(url, botan_token, user_id, loop=None):
with aiohttp.ClientSession(loop=loop) as session:
async with session.get(SHORTENER_URL, params=params) as resp:
return await resp.text()
except aiohttp.errors.ClientError as e:
except aiohttp.client_exceptions.ClientError as e:
print(e)
return url