Add context to the get_gh_api APIException

This commit is contained in:
Mikhail f. Shiryaev 2024-06-06 13:10:51 +02:00
parent 3b593a7c5e
commit 0dff60821f
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -110,7 +110,7 @@ def get_gh_api(
logging.info("Exception '%s' while getting, retry %i", exc, try_cnt)
time.sleep(sleep)
raise APIException("Unable to request data from GH API") from exc
raise APIException(f"Unable to request data from GH API: {url}") from exc
def get_build_name_for_check(check_name: str) -> str: