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_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}
|
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()
|
restored = context_file_read.read_config()
|
||||||
if restored:
|
if restored:
|
||||||
main.print("restored from <m>.over-video<.>: %s" %(", ".join("<g>%s<.>" %(o.name) for o in restored)), main.print.tl.note)
|
main.print("restored from <m>.over-video<.>: %s" %(", ".join("<g>%s<.>" %(o.name) for o in restored)), main.print.tl.note)
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
major = 1 # VERSION_MAJOR_IDENTIFIER
|
major = 1 # VERSION_MAJOR_IDENTIFIER
|
||||||
minor = 99 # VERSION_MINOR_IDENTIFIER
|
minor = 99 # VERSION_MINOR_IDENTIFIER
|
||||||
# VERSION_LAST_MM 1.99
|
# VERSION_LAST_MM 1.99
|
||||||
patch = 1 # VERSION_PATCH_IDENTIFIER
|
patch = 2 # VERSION_PATCH_IDENTIFIER
|
||||||
str = ".".join(str(v) for v in (major, minor, patch))
|
str = ".".join(str(v) for v in (major, minor, patch))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue