diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-08-17 13:29:10 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-08-17 13:46:28 +0300 |
commit | d56945cc41a9588710dcea2d9c1455554cbcafa3 (patch) | |
tree | dcb440c11aa2fedc5a26e6772010b545c8c1b0f8 /nbxmpp/modules/iq.py | |
parent | 2f4a79e0e4722e605ecc85238a22584fe601088c (diff) |
Use error_factory() everywhere
Diffstat (limited to 'nbxmpp/modules/iq.py')
-rw-r--r-- | nbxmpp/modules/iq.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/modules/iq.py b/nbxmpp/modules/iq.py index b00f829..e699c75 100644 --- a/nbxmpp/modules/iq.py +++ b/nbxmpp/modules/iq.py @@ -21,7 +21,7 @@ from nbxmpp.protocol import Error as ErrorStanza from nbxmpp.protocol import ERR_BAD_REQUEST from nbxmpp.protocol import NodeProcessed from nbxmpp.structs import StanzaHandler -from nbxmpp.structs import ErrorProperties +from nbxmpp.util import error_factory from nbxmpp.const import IqType log = logging.getLogger('nbxmpp.m.iq') @@ -57,4 +57,4 @@ class BaseIq: properties.query = stanza.getQuery() if properties.type.is_error: - properties.error = ErrorProperties(stanza) + properties.error = error_factory(stanza) |