diff options
Diffstat (limited to 'module')
-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") |