forked from LBRYCommunity/lbry-sdk
fix uncaught analytics exception
This commit is contained in:
parent
0490250da4
commit
0b0150ad73
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ def log_response(fn):
|
|||
def _log(future):
|
||||
if future.cancelled():
|
||||
log.warning('Request was unexpectedly cancelled')
|
||||
elif future.exception():
|
||||
log.warning(future.exception_info())
|
||||
else:
|
||||
response = future.result()
|
||||
log.debug('Response (%s): %s', response.status_code, response.content)
|
||||
|
|
Loading…
Reference in a new issue