mocobeta commented on code in PR #56:
URL: https://github.com/apache/lucene-jira-archive/pull/56#discussion_r924414496
##########
migration/src/download_jira.py:
##########
@@ -41,9 +41,16 @@ def download_issue(num: int, dump_dir: Path) -> bool:
if res.status_code != 200:
logger.warning(f"Can't download {issue_id}. status
code={res.status_code}, message={res.text}")
return False
+ data = res.json()
+ if "key" not in data:
+ logger.warning(f"The issue's key does not exist. Skipped {issue_id}")
Review Comment:
Yes this shouldn't happen. just for safety...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]