Commits

Anonymous committed f263b97

Test for empty session ID, which is invalid

Comments (0)

Files changed (1)

 class FileSession(object):
     
     def __init__(self, sid, create=False, session_file_path='/tmp'):
+        if not sid:
+            # Invalid...
+            raise KeyError
         self.session_file_path = session_file_path
         self.sid = sid
         if not create: