MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / log_api_failure

Function log_api_failure

scripts/gh_scripts/issue_comment_bot.py:111–116  ·  view source on GitHub ↗
(_resp)

Source from the content-addressed store, hash-verified

109 """
110
111 def log_api_failure(_resp):
112 print(f"Failed to fetch comments for issue #{i['number']}")
113 print(f"URL: {i['html_url']}")
114 _d = _resp.json()
115 print(f"Message: {_d.get('message', '')}")
116 print(f"Documentation URL: {_d.get('documentation_url', '')}")
117
118 results = []
119

Callers 1

filter_issuesFunction · 0.85

Calls 2

jsonMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected