diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-06-23 00:33:50 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-06-23 00:33:50 +0300 |
commit | 3d57126268db971d05629ae1bc82f9cec588698c (patch) | |
tree | 4b69551e397e4312a781e9f7d1de2975267413f4 /nbxmpp/structs.py | |
parent | 9fd88196a947d24149927952f5e2ada80ad81225 (diff) |
Add jid to CommonError results
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index a614541..fcfc68f 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -135,7 +135,7 @@ class OMEMOBundle(namedtuple('OMEMOBundle', 'spk spk_signature ik otpks')): return random.SystemRandom().choice(self.otpks) -class CommonError(namedtuple('CommonError', 'type message')): +class CommonError(namedtuple('CommonError', 'type message jid')): def __str__(self): if self.message is not None: return '%s: %s' % (self.type, self.message) |