fix --context crash: aux.update_cfg_context now uses over.app.ConfigFile.ignore_unknown

This commit is contained in:
Martinez 2016-05-29 09:28:12 +02:00
parent de12887956
commit da1f6972fb
2 changed files with 2 additions and 2 deletions

2
aux.py
View file

@ -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)

View file

@ -4,5 +4,5 @@
major = 1 # VERSION_MAJOR_IDENTIFIER
minor = 99 # VERSION_MINOR_IDENTIFIER
# 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))