Skip to content

Commit bdfe0a9

Browse files
[misc] ExecUtilException::__repr__ is updated (#5)
1 parent 981dbe8 commit bdfe0a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def error(self) -> typing.Optional[T_ERR_DATA]:
9090
return self._error
9191

9292
def __repr__(self) -> str:
93+
assert type(self) == ExecUtilException # noqa: E721
94+
assert __class__ == ExecUtilException # noqa: E721
95+
9396
args = []
9497

9598
if self._description is not None:
@@ -107,9 +110,6 @@ def __repr__(self) -> str:
107110
if self._error is not None:
108111
args.append(("error", self._error))
109112

110-
assert type(self) == ExecUtilException # noqa: E721
111-
assert __class__ == ExecUtilException # noqa: E721
112-
113113
result = "{}(".format(__class__.__name__)
114114
sep = ""
115115
for a in args:

0 commit comments

Comments
 (0)