-
Notifications
You must be signed in to change notification settings - Fork 4.4k
raise errors properly on UnityRegistry #4070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| logger.debug( | ||
| f"Attempt {attempt + 1} / {NUMBER_ATTEMPTS} : Failed to download" | ||
| ) | ||
| except Exception: # pylint: disable=W0702 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular exception that is given here when it fails to download?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of things could go wrong : Could have internet problems, zip extraction problems, permission issues, IOErrors...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose ideally we only retry certain things, specifically internet/download problems. But that seems more difficult than it's worth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can just change the message to "Failed to download and extract". I also think it should be a warning and not a debug message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 - one comment but looks good overall
Proposed change(s)
Raising errors better when something goes wrong when trying to download
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments