diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-11 22:46:26 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-11 22:46:26 +0200 |
commit | 25df148175278a087399b11748afefc71d4e809c (patch) | |
tree | e1de6d6af8177ff2c292dfe65e981643385ba85b /module/ConfigParser.py | |
parent | folder name fix, skip existing files (diff) | |
download | pyload-25df148175278a087399b11748afefc71d4e809c.tar.xz |
account parser fix
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r-- | module/ConfigParser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/ConfigParser.py b/module/ConfigParser.py index d5f753b9b..568d22db9 100644 --- a/module/ConfigParser.py +++ b/module/ConfigParser.py @@ -63,7 +63,7 @@ class ConfigParser: f.close() v = v[v.find(":")+1:].strip() - if int(v) < CONF_VERSION: + if not v or int(v) < CONF_VERSION: copy(join(pypath,"module", "config", "default.conf"), "pyload.conf") print "Old version of config was replaced" @@ -72,7 +72,7 @@ class ConfigParser: f.close() v = v[v.find(":")+1:].strip() - if int(v) < CONF_VERSION: + if not v or int(v) < CONF_VERSION: f = open("plugin.conf", "wb") f.write("version: "+str(CONF_VERSION)) f.close() |