Skip to content

Commit

Permalink
Corrected code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaspuff committed Mar 2, 2018
1 parent 1b4f627 commit 7b19979
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tomodachi/transport/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ async def _func(obj: Any, request: web.Request) -> None:
traceback.print_exception(e.__class__, e, e.__traceback__)
try:
await websocket.close()
except:
except Exception:
pass

try:
context['_http_open_websockets'].remove(websocket)
except:
except Exception:
pass

logging.getLogger('transport.http').info('[{}] {} {} "{} {}{}" {} "{}" {}'.format(
Expand Down Expand Up @@ -449,12 +449,12 @@ async def _func(obj: Any, request: web.Request) -> None:
traceback.print_exception(e.__class__, e, e.__traceback__)
try:
await websocket.close()
except:
except Exception:
pass

try:
context['_http_open_websockets'].remove(websocket)
except:
except Exception:
pass

return await cls.request_handler(cls, obj, context, _func, 'GET', url)
Expand Down Expand Up @@ -611,7 +611,7 @@ async def stop_service(*args: Any, **kwargs: Any) -> None:
for websocket in open_websockets:
try:
await websocket.close()
except:
except Exception:
pass
server.close()
await app.shutdown()
Expand Down

0 comments on commit 7b19979

Please sign in to comment.