-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
bug (unverified)The problem described would be a bug, but needs to be triagedThe problem described would be a bug, but needs to be triagedcleanupNot broken, but could be more streamlinedNot broken, but could be more streamlined
Description
Hello,
In uproot/source/coalesce.py , when there is a bad response from an upstream server, this happens:
~/.local/lib/python3.11/site-packages/uproot/source/coalesce.py in result(self, timeout)
37 # Pyodide futures don't support timeout
38 return self._parent.result()[self._s]
---> 39 return self._parent.result(timeout=timeout)[self._s]
40
41
TypeError: 'ClientResponseError' object is not subscriptable
This looks like it just needs a bit nicer error handling to pass on the error appropriately. Of course, it's an error in any case, so it's just a matter of making sure that the "correct" error is shown rather than something with a stack from uproot.
(Of course, this is a pretty tricky one to give a reproducer for right now — our server has some instability that's generating the error, but it doesn't happen every time...)
Thanks,
Zach
Metadata
Metadata
Assignees
Labels
bug (unverified)The problem described would be a bug, but needs to be triagedThe problem described would be a bug, but needs to be triagedcleanupNot broken, but could be more streamlinedNot broken, but could be more streamlined