From da1f6972fb8a1a16c2a6b73711d43cd6340b0826 Mon Sep 17 00:00:00 2001 From: Martinez Date: Sun, 29 May 2016 09:28:12 +0200 Subject: [PATCH] fix --context crash: aux.update_cfg_context now uses over.app.ConfigFile.ignore_unknown --- aux.py | 2 +- version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aux.py b/aux.py index 92badbf..df70354 100644 --- a/aux.py +++ b/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 .over-video<.>: %s" %(", ".join("%s<.>" %(o.name) for o in restored)), main.print.tl.note) diff --git a/version.py b/version.py index 64d0952..979dac3 100644 --- a/version.py +++ b/version.py @@ -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))