You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be similar to issue #39. Any exceptions raised during asynchronous operation can't be trapped using try/except. Using set_exception_notifier(...) works though.
I think this is because client.read_thread() method fails to capture and handle exceptions when calling client._read_message(). Further, request and latch objects miss any exception handling functionality.
The following hack worked for me:
fromcoro.http.clientimportclientashttp_clientclasshttp_kludge(http_client):
defread_thread(self):
while1:
req=self.pending.pop()
ifreqisNone:
breakelse:
try:
self._read_message(req)
exceptException, exc:
req.latch.cv.raise_all(exc) # put the exception where it belongselse:
ifnotreq.response:
breakelse:
req.wake()
The text was updated successfully, but these errors were encountered:
This may be similar to issue #39. Any exceptions raised during asynchronous operation can't be trapped using try/except. Using set_exception_notifier(...) works though.
I think this is because client.read_thread() method fails to capture and handle exceptions when calling client._read_message(). Further, request and latch objects miss any exception handling functionality.
The following hack worked for me:
The text was updated successfully, but these errors were encountered: