summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-18 13:47:03 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-18 13:47:03 +0100
commitf9abe89f6f25f79f60ca68219d8859a0cc133534 (patch)
tree39b619fd31c7d195b5d2d090dc0c5cab82d3136a /module
parentclosed #160 (diff)
downloadpyload-f9abe89f6f25f79f60ca68219d8859a0cc133534.tar.xz
fixed invalid pid file
Diffstat (limited to 'module')
-rw-r--r--module/AccountManager.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/AccountManager.py b/module/AccountManager.py
index 4151f529c..3cb284adc 100644
--- a/module/AccountManager.py
+++ b/module/AccountManager.py
@@ -72,10 +72,8 @@ class AccountManager():
f.close()
f = open("accounts.conf", "rb")
- content = f.readlines()
-
- version = content.pop(0)
- version = version.split(":")[1].strip()
+ content = f.readline(1)
+ version = content.split(":")[1].strip() if content else ""
if not version or int(version) < ACC_VERSION:
copy("accounts.conf", "accounts.backup")