fix --context crash: aux.update_cfg_context now uses over.app.ConfigFile.ignore_unknown
This commit is contained in:
parent
de12887956
commit
da1f6972fb
2 changed files with 2 additions and 2 deletions
2
aux.py
2
aux.py
|
@ -50,7 +50,7 @@ def update_cfg_context(main, ignore=[]):
|
|||
options_to_write = {option.name: option for option in options_to_consider if option.source == over.app.Option_sources.command_line}
|
||||
options_to_read = {option.name: option for option in options_to_consider if option.source != over.app.Option_sources.command_line}
|
||||
|
||||
context_file_read = over.app.ConfigFile(options_to_read, ".over-video")
|
||||
context_file_read = over.app.ConfigFile(options_to_read, ".over-video", ignore_unknown=True)
|
||||
restored = context_file_read.read_config()
|
||||
if restored:
|
||||
main.print("restored from <m>.over-video<.>: %s" %(", ".join("<g>%s<.>" %(o.name) for o in restored)), main.print.tl.note)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue