don't fail if option already deleted above. Fixes #571

This commit is contained in:
clinton-hall 2014-09-25 09:26:00 +09:30
commit 9fdae5685f

View file

@ -187,7 +187,9 @@ class ConfigObj(configobj.ConfigObj, Section):
values[option] = value
# remove any options that we no longer need so they don't migrate into our new config
if not list(ConfigObj.find_key(CFG_NEW, option)):
try:
values.pop(option)
except: pass
return values