From f9abe89f6f25f79f60ca68219d8859a0cc133534 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 18 Dec 2010 13:47:03 +0100 Subject: fixed invalid pid file --- module/AccountManager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/AccountManager.py') 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") -- cgit v1.2.3