Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jan 10, 2019
1 parent bc128c2 commit e6c2858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion engineio/asyncio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ async def _connect_polling(self, url, headers, engineio_path):
'Connection refused by the server')
if r.status != 200:
raise exceptions.ConnectionError(
'Unexpected status code %s in server response', r.status)
'Unexpected status code {} in server response'.format(
r.status))
try:
p = payload.Payload(encoded_payload=await r.read())
except ValueError:
Expand Down
3 changes: 2 additions & 1 deletion engineio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def _connect_polling(self, url, headers, engineio_path):
'Connection refused by the server')
if r.status != 200:
raise exceptions.ConnectionError(
'Unexpected status code %s in server response', r.status)
'Unexpected status code {} in server response'.format(
r.status))
try:
p = payload.Payload(encoded_payload=r.data)
except ValueError:
Expand Down

0 comments on commit e6c2858

Please sign in to comment.