summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-05 23:01:03 +0200
committermathieui <mathieui@mathieui.net>2014-05-05 23:01:03 +0200
commitc9059b98c7e5012a173bd5422d12e59f50dd7206 (patch)
tree0c9430dfd4e87d197ec35369ed86f4be7ef6159d /src
parentc5b85d3b5da57e459d561be7a4e90c11347cc3a3 (diff)
downloadpoezio-c9059b98c7e5012a173bd5422d12e59f50dd7206.tar.gz
poezio-c9059b98c7e5012a173bd5422d12e59f50dd7206.tar.bz2
poezio-c9059b98c7e5012a173bd5422d12e59f50dd7206.tar.xz
poezio-c9059b98c7e5012a173bd5422d12e59f50dd7206.zip
Fix a traceback on adhoc error
Diffstat (limited to 'src')
-rw-r--r--src/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
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')