-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Labels
Description
Current if an HTTP error is thrown by an API the log print error.response.reason
as a result of
grimoirelab-perceval/perceval/client.py
Line 181 in 7f4cceb
response.raise_for_status() |
However, many times the actual reason for the error is returned in ``error.response.text`. A log message can be printed in case an exception is thrown. This will help users to easily debug the error and also possibly avoid the need of such checks:
if not group_download_archive: |
if error.response.status_code == 404 and str(error.response.reason).upper() == 'NOT FOUND': |
valeriocos