summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-18 16:27:32 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-18 16:27:32 +0100
commit3699695eedd73e144859ed824730bd7842f19bd9 (patch)
tree4ee90eb41198536fc82ff2600188ea525eff87e2 /module
parentfixed invalid pid file (diff)
downloadpyload-3699695eedd73e144859ed824730bd7842f19bd9.tar.xz
acc manager fix
Diffstat (limited to 'module')
-rw-r--r--module/AccountManager.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/AccountManager.py b/module/AccountManager.py
index 3cb284adc..ab35334fc 100644
--- a/module/AccountManager.py
+++ b/module/AccountManager.py
@@ -72,12 +72,12 @@ class AccountManager():
f.close()
f = open("accounts.conf", "rb")
- content = f.readline(1)
- version = content.split(":")[1].strip() if content else ""
+ content = f.readlines()
+ version = content[0].split(":")[1].strip() if content else ""
+ f.close()
if not version or int(version) < ACC_VERSION:
copy("accounts.conf", "accounts.backup")
- f.close()
f = open("accounts.conf", "wb")
f.write("version: " + str(ACC_VERSION))
f.close()
@@ -88,8 +88,8 @@ class AccountManager():
plugin = ""
name = ""
-
- for line in content:
+
+ for line in content[1:]:
line = line.strip()
if not line: continue