diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-18 13:47:03 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-18 13:47:03 +0100 |
commit | f9abe89f6f25f79f60ca68219d8859a0cc133534 (patch) | |
tree | 39b619fd31c7d195b5d2d090dc0c5cab82d3136a /module/AccountManager.py | |
parent | closed #160 (diff) | |
download | pyload-f9abe89f6f25f79f60ca68219d8859a0cc133534.tar.xz |
fixed invalid pid file
Diffstat (limited to 'module/AccountManager.py')
-rw-r--r-- | module/AccountManager.py | 6 |
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") |