mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
don't fail if option already deleted above. Fixes #571
This commit is contained in:
parent
ebe3319f25
commit
9fdae5685f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue