Make help command accept use without a session

This commit is contained in:
Griatch 2019-01-01 03:29:55 +01:00
parent 0f34519958
commit 1b5da3e85d

View file

@ -66,7 +66,7 @@ class CmdHelp(Command):
if type(self).help_more:
usemore = True
if self.session.protocol_key in ("websocket", "ajax/comet"):
if self.session and self.session.protocol_key in ("websocket", "ajax/comet"):
try:
options = self.account.db._saved_webclient_options
if options and options["helppopup"]: