X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/31773020eedbe29daff0a407619df9607e569e22..f5eb2affdc1c88c71b4d66598dfc14216b22730f:/python/disorder.py.in diff --git a/python/disorder.py.in b/python/disorder.py.in index a8afcba..9585438 100644 --- a/python/disorder.py.in +++ b/python/disorder.py.in @@ -231,7 +231,7 @@ def _list2dict(l): while True: k = i.next() v = i.next() - d[k] = v + d[str(k)] = v except StopIteration: pass return d @@ -294,7 +294,8 @@ class client: home = pw.pw_dir privconf = _configfile + "." + pw.pw_name passfile = home + os.sep + ".disorder" + os.sep + "passwd" - self._readfile(_configfile) + if os.path.exists(_configfile): + self._readfile(_configfile) if os.path.exists(privconf): self._readfile(privconf) if os.path.exists(passfile) and _userconf: