From 5d4e47fb4173e5d1b327abd72c26b5fb68df99d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 27 Jan 2009 16:25:08 +0100 Subject: Use implicit 'MAIN' if no name and therefore default session name is given --- portato/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/session.py') diff --git a/portato/session.py b/portato/session.py index 89684be..c100be7 100644 --- a/portato/session.py +++ b/portato/session.py @@ -42,7 +42,7 @@ class Session (object): self._cfg = None self._handlers = [] - self._name = name + self._name = name if name else "MAIN" if not (os.path.exists(SESSION_DIR) and os.path.isdir(SESSION_DIR)): os.mkdir(SESSION_DIR) -- cgit v1.2.3