summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/session.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/paste/session.py b/paste/session.py
index 6b6291a..b1de153 100644
--- a/paste/session.py
+++ b/paste/session.py
@@ -126,6 +126,9 @@ class SessionFactory(object):
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: