diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-14 17:41:02 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-14 17:41:02 +0100 |
commit | 60a940b98458e1cae3203f5286ec6f652b5f1a56 (patch) | |
tree | fc475fe9ecdc69d2938fa4a14c27dbf1bfd3462b /module/plugins/AccountManager.py | |
parent | really fixed #201 (diff) | |
download | pyload-60a940b98458e1cae3203f5286ec6f652b5f1a56.tar.xz |
gui account add fix
Diffstat (limited to 'module/plugins/AccountManager.py')
-rw-r--r-- | module/plugins/AccountManager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py index bd0871705..7299ff643 100644 --- a/module/plugins/AccountManager.py +++ b/module/plugins/AccountManager.py @@ -124,8 +124,9 @@ class AccountManager(): for name,data in accounts.iteritems(): f.write("\n\t%s:%s\n" % (name,data["password"]) ) - for option, values in data["options"].iteritems(): - f.write("\t@%s %s\n" % (option, " ".join(values))) + if data["options"]: + for option, values in data["options"].iteritems(): + f.write("\t@%s %s\n" % (option, " ".join(values))) f.close() chmod(f.name, 0600) |