Make help command accept use without a session

This commit is contained in:
Griatch 2019-01-01 03:29:55 +01:00
parent 9a556aa57b
commit 352582541f

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"]: