You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example is to drive my point home, but, yeah, the unexpected error is unnecessary.
$ cd`mktemp -d`
$ mkdir .dvc
$ dvc status
ERROR: unexpected error - expected str, bytes or os.PathLike object, not NoneType
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
The text was updated successfully, but these errors were encountered:
@skshetry Yes, some errors are expected: like target that doesn't exist or something like that. But sometimes some random exceptions make its way all the way up without being caught/handled, so to us they are unexpected. Your example is for an issue that we should've handled nicer before it was caught by the top level except Exception and so it shouldn't be an unexpected error.
@skshetry Some exceptions like AssertionError will not have any str at all :) So it would show up as ERROR: without anything else 🙂 So unexpected error is somewhat useful. But ideally dvc should handle everything before it hits the unexpected error, that's our last line of defense 🙂
The following example is to drive my point home, but, yeah, the
unexpected error
is unnecessary.The text was updated successfully, but these errors were encountered: