Don't swallow the stack trace in backend.http.request if a request fails

This commit is contained in:
Fabio Manganiello 2020-04-22 23:46:05 +00:00
parent 01ce9284a1
commit 8440320031

View file

@ -76,6 +76,7 @@ class HttpRequest(object):
response.raise_for_status() response.raise_for_status()
except Exception as e: except Exception as e:
self.logger.exception(e)
self.logger.warning('Encountered an error while retrieving {}: {}'. self.logger.warning('Encountered an error while retrieving {}: {}'.
format(self.args.url, str(e))) format(self.args.url, str(e)))