Commit 301b17e7 authored by Tijmen de Mes's avatar Tijmen de Mes

Prevent traceback on PGPKeys load when there is no chat in the session

parent 76ac8d71
...@@ -2587,7 +2587,10 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin): ...@@ -2587,7 +2587,10 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
def _NH_MessageStreamPGPKeysDidLoad(self, notification): def _NH_MessageStreamPGPKeysDidLoad(self, notification):
stream = notification.sender stream = notification.sender
blink_session = stream.blink_session blink_session = stream.blink_session
try:
session = blink_session.items.chat session = blink_session.items.chat
except AttributeError:
return
if session is None: if session is None:
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment