diff --git a/xmpp_tg/xmpp.py b/xmpp_tg/xmpp.py index 61bed70..a24876b 100644 --- a/xmpp_tg/xmpp.py +++ b/xmpp_tg/xmpp.py @@ -271,7 +271,7 @@ class XMPPTelegram(ComponentXMPP): def _min_args(self, num_args): if len(self.arguments) < num_args: - raise WrongNumberOfArgsError("!{} needs at least {} arguments".format(self._command, num_args)) + raise self.WrongNumberOfArgsError("!{} needs at least {} arguments".format(self._command, num_args)) def __init__(self, msg): self._command = msg["body"].split(" ")[0][1:]