From c9059b98c7e5012a173bd5422d12e59f50dd7206 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 5 May 2014 23:01:03 +0200 Subject: Fix a traceback on adhoc error --- src/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/handlers.py b/src/core/handlers.py index 6d775a78..ce54ccab 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -1161,7 +1161,7 @@ def on_next_adhoc_step(self, iq, adhoc_session): self.information("Adhoc command %s: %s" % (status, notes), "Info") def on_adhoc_error(self, iq, adhoc_session): - self.xmpp.plugin['xep_0050'].terminate_command(session) + self.xmpp.plugin['xep_0050'].terminate_command(adhoc_session) error_message = self.get_error_message(iq) self.information("An error occured while executing the command: %s" % (error_message), 'Error') -- cgit v1.2.3