From 45f280f56c93fd3504029c4022f39b097b634622 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 15 Jan 2015 21:40:57 +0100 Subject: Fix a silent traceback in the otr plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (the “X has not enabled OTR after n seconds.” would not be displayed) --- plugins/otr.py | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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: -- cgit v1.2.3