diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-11-02 23:50:23 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-11-02 23:50:23 +0100 |
commit | 2869169d44baa53eca78ec1e55342fe882b692c2 (patch) | |
tree | 6161e6607a39d2abe15be4ffcec42a80f048653c /portato/session.py | |
parent | c3bc1482872c4199114decd3a9f68b046433b5a0 (diff) | |
download | portato-2869169d44baa53eca78ec1e55342fe882b692c2.tar.gz portato-2869169d44baa53eca78ec1e55342fe882b692c2.tar.bz2 portato-2869169d44baa53eca78ec1e55342fe882b692c2.zip |
Improvement to session handling of selections. Increased gui SESSION_VERSION.
Diffstat (limited to '')
-rw-r--r-- | portato/session.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/portato/session.py b/portato/session.py index 9f08ff7..4b0edb0 100644 --- a/portato/session.py +++ b/portato/session.py @@ -72,14 +72,12 @@ class Session (object): loaded = [self._cfg.get(*x) for x in options] except KeyError: # does not exist -> ignore debug("No values for %s.", options) + if default: + debug("Loading %s with defaults %s.", options, default) + lfn(*default) else: debug("Loading %s with values %s.", options, loaded) lfn(*loaded) - continue - - if default: - debug("Loading %s with defaults %s.", options, default) - lfn(*default) def save (self): """ |