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):
def _NH_MessageStreamPGPKeysDidLoad(self, notification):
stream = notification.sender
blink_session = stream.blink_session
session = blink_session.items.chat
try:
session = blink_session.items.chat
except AttributeError:
return
if session is None:
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