Commit 86410b9c authored by Christian Robottom's avatar Christian Robottom

Handle empty password files gracefully.

parent 109720ba
......@@ -83,6 +83,10 @@ class Database:
fd = open(filename)
L = fd.readlines()
if not L:
return
if L[0].startswith("realm "):
line = L.pop(0).strip()
self.realm = line[len("realm "):]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment