summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-01-15 21:40:57 +0100
committermathieui <mathieui@mathieui.net>2015-01-15 21:40:57 +0100
commit45f280f56c93fd3504029c4022f39b097b634622 (patch)
tree2073d09c700a765e43b7e3e3c2e5a826bfd39195
parent0efdcd12e24586453dfd3f5395b950699bd1d846 (diff)
downloadpoezio-45f280f56c93fd3504029c4022f39b097b634622.tar.gz
poezio-45f280f56c93fd3504029c4022f39b097b634622.tar.bz2
poezio-45f280f56c93fd3504029c4022f39b097b634622.tar.xz
poezio-45f280f56c93fd3504029c4022f39b097b634622.zip
Fix a silent traceback in the otr plugin
(the “X has not enabled OTR after n seconds.” would not be displayed)
-rw-r--r--plugins/otr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index 8b8dbb04..16d2f3ed 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -882,6 +882,7 @@ class Plugin(BasePlugin):
else:
was_locked = False
def notify_otr_timeout():
+ nonlocal name
otr = self.get_context(name)
if isinstance(tab, DynamicConversationTab) and not was_locked:
if tab.locked_resource: