Fix a silent traceback in the otr plugin
(the “X has not enabled OTR after n seconds.” would not be displayed)
This commit is contained in:
parent
0efdcd12e2
commit
45f280f56c
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue