Some minor fixes and cleanups.

This commit is contained in:
Griatch 2016-09-14 23:27:55 +02:00
parent 07944918f7
commit 4a97a05c10
3 changed files with 3 additions and 4 deletions

View file

@ -320,7 +320,7 @@ class PortalSessionHandler(SessionHandler):
"""
return [sess for sess in self.get_sessions(include_unloggedin=True)
if hasattr(sess, 'csessid') and sess.csessid == csessid]
if hasattr(sess, 'csessid') and sess.csessid and sess.csessid == csessid]
def announce_all(self, message):
"""