-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
exceptions: general refactor #3050
Comments
Hi! Just a quick suggestion of an exception that could be made more clear: when trying to DVC pull a dataset stored in an S3 bucket that the user doesn't have access to, the following traceback occurs:
It would be much easier to understand if the error raised was some variant on AccessDenied, rather than a SyntaxError. |
Hi @lbernick ! That |
Hi @efiop , I'm the user @lbernick mentioned. Here is the full traceback:
and
let me know if I can provide any other information. |
Hi @ccurme ! Thanks for clarifying! Looks like you have an issue with your environment (e.g. pypa/pipenv#1589). I would try re-creating your virtualenv to see if that helps. Could you give it a try, please? |
Hi @efiop , This resolved my issue, thanks! |
Hi!
I think it would be great to improve it a little so the user can tell the problem has to do with the AWS credentials. Should I open a separate issue for this? Thanks |
Improving exceptions would bring a better experience to DVC users and developers:
Move exceptions to a single module (
dvc/exceptions.py
), there would be only one file to import.Pass a message to exceptions, brings flexibility and reduces boilerplate code.
Have broader exceptions, might bring meaningful boundaries to error handling -- Create error handler for remotes #2965
Any comments or suggestions are more than welcome)
The only way I could think of dealing with this, is to brute force it: going through all the exceptions, taking notes and submit a proposal with some improvements.
The text was updated successfully, but these errors were encountered: