summaryrefslogtreecommitdiff
path: root/portato/session.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/session.py8
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):
"""