Skip to content

Commit 36a0f25

Browse files
authored
propagate SyncObjException.errorCode (#193)
With this fix the errorCode directly appears in logs: ``` >>> repr(SyncObjException('something')) "SyncObjException('something')" ```
1 parent 2ec056d commit 36a0f25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pysyncobj/syncobj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class _COMMAND_TYPE:
6464

6565
class SyncObjException(Exception):
6666
def __init__(self, errorCode, *args, **kwargs):
67-
Exception.__init__(self, *args, **kwargs)
67+
Exception.__init__(self, errorCode, *args, **kwargs)
6868
self.errorCode = errorCode
6969

7070
class SyncObjExceptionWrongVer(SyncObjException):

0 commit comments

Comments
 (0)