diff options
-rw-r--r-- | portato/config_parser.py | 4 | ||||
-rw-r--r-- | portato/session.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/portato/config_parser.py b/portato/config_parser.py index e0bb15d..58e4038 100644 --- a/portato/config_parser.py +++ b/portato/config_parser.py @@ -483,8 +483,8 @@ class ConfigParser: return with self.writelock: - for sec in self.vars: - for val in self.vars[sec].itervalues(): + for sec in self.vars.itervalues(): + for val in sec.itervalues(): if val.changed: part1 = self.cache[val.line][:self.pos[val.line][0]] # key+DELIMITER part2 = val.value # value 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) |