Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
disable worker GET check until upstream fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naggie committed Jun 10, 2017
1 parent c48aa91 commit 8324c22
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dsportal/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ async def websocket_client(loop,worker,host,key):
# check auth
while True:
try:
async with session.get(url) as resp:
if resp.status != 400: # upgrade to ws pls
log.error(await resp.text())
sys.exit(1)
# TODO re-enable when
# https://github.com/aio-libs/aiohttp/issues/1955 is fixed check
# auth, worker lock, etc
#async with session.get(url) as resp:
# if resp.status != 400: # upgrade to ws pls
# log.error(await resp.text())
# sys.exit(1)

connection = session.ws_connect(
url=url,
Expand Down

0 comments on commit 8324c22

Please sign in to comment.