We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981dbe8 commit bdfe0a9Copy full SHA for bdfe0a9
1 file changed
src/exceptions.py
@@ -90,6 +90,9 @@ def error(self) -> typing.Optional[T_ERR_DATA]:
90
return self._error
91
92
def __repr__(self) -> str:
93
+ assert type(self) == ExecUtilException # noqa: E721
94
+ assert __class__ == ExecUtilException # noqa: E721
95
+
96
args = []
97
98
if self._description is not None:
@@ -107,9 +110,6 @@ def __repr__(self) -> str:
107
110
if self._error is not None:
108
111
args.append(("error", self._error))
109
112
- assert type(self) == ExecUtilException # noqa: E721
- assert __class__ == ExecUtilException # noqa: E721
-
113
result = "{}(".format(__class__.__name__)
114
sep = ""
115
for a in args:
0 commit comments