fixed options initiation

This commit is contained in:
Bernardo Damele
2012-12-20 16:53:43 +00:00
parent b0635bddcc
commit 7adaffa71b
4 changed files with 28 additions and 18 deletions

View File

@@ -1784,7 +1784,7 @@ def _mergeOptions(inputOptions, overrideOptions):
kb.explicitSettings.add(key)
for key, value in defaults.items():
if conf[key] is None:
if hasattr(conf, key) and conf[key] is None:
conf[key] = value
def _setTrafficOutputFP():

View File

@@ -183,6 +183,7 @@ optDict = {
"hexConvert": "boolean",
"oDir": "string",
"parseErrors": "boolean",
"saveCmdline": "boolean",
"updateAll": "boolean",
"tor": "boolean",
"torPort": "integer",
@@ -202,6 +203,7 @@ optDict = {
"hpp": "boolean",
"mobile": "boolean",
"pageRank": "boolean",
"purgeOutput": "boolean",
"smart": "boolean",
"testFilter": "string",
"wizard": "boolean",