exceptional exceptions (#6654)

* exceptional exceptions

* backward compatibility with previous exceptions

* make linters happy :)
This commit is contained in:
Saugat Pachhai
2021-09-21 11:27:57 +05:45
committed by GitHub
parent 4221d9f70b
commit 6a417885b8
3 changed files with 104 additions and 3 deletions
+5
View File
@@ -364,3 +364,8 @@ class CircularImportError(DvcException):
f"'{dep}' contains invalid circular import. "
f"DVC repo '{a}' already imports from '{b}'."
)
class PrettyDvcException(DvcException):
def __pretty_exc__(self, **kwargs):
"""Print prettier exception message."""