From af6f6b99e9cceb8170502c4d1daf61a2b32fbcb7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 1 May 2014 19:57:14 +0200 Subject: [PATCH] Catch ValueError when reading config --- TODO | 1 - qutebrowser/app.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index cdb9aac70..a979c3ae8 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,6 @@ Bugs ==== All kind of FIXMEs -Catch ValueError for invalid interpolations when reading config Display untransformed values for get Style diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 612680b92..3caf3ff8e 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -112,7 +112,8 @@ class QuteBrowser(QApplication): configparser.InterpolationError, configparser.DuplicateSectionError, configparser.DuplicateOptionError, - configparser.ParsingError) as e: + configparser.ParsingError, + ValueError) as e: errstr = "Error while reading config:" if hasattr(e, 'section') and hasattr(e, 'option'): errstr += "\n\n{} -> {}:".format(e.section, e.option)