diff options
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r-- | sleekxmpp/plugins/xep_0050/adhoc.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0050/adhoc.py b/sleekxmpp/plugins/xep_0050/adhoc.py index 8f2ea5c2..d546c27d 100644 --- a/sleekxmpp/plugins/xep_0050/adhoc.py +++ b/sleekxmpp/plugins/xep_0050/adhoc.py @@ -565,10 +565,11 @@ class XEP_0050(BasePlugin): session -- All stored data relevant to the current command session. """ + sessionid = 'client:' + session['id'] try: - del self.sessions[session['id']] - except: - pass + del self.sessions[sessionid] + except Exception as e: + log.error("Error deleting adhoc command session: %s" % e.message) def _handle_command_result(self, iq): """ |