Skip to content

Commit cfaab88

Browse files
authored
Merge pull request #211 from creativecommons/github-fetch-double-log-error
GitHub fetch: remove double logging of errors
2 parents 021e4c4 + 94d2e99 commit cfaab88

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/1-fetch/github_fetch.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,10 @@ def query_github(args, session):
150150
)
151151
LOGGER.info(f"count: {count}")
152152
except requests.HTTPError as e:
153-
LOGGER.error(f"HTTP Error: {e}")
154153
raise shared.QuantifyingException(f"HTTP Error: {e}", 1)
155154
except requests.RequestException as e:
156-
LOGGER.error(f"Request Exception: {e}")
157155
raise shared.QuantifyingException(f"Request Exception: {e}", 1)
158156
except KeyError as e:
159-
LOGGER.error(f"KeyError: {e}.")
160157
raise shared.QuantifyingException(f"KeyError: {e}", 1)
161158
return tool_data
162159

0 commit comments

Comments
 (0)