From 561e5d17b9450dec7a7b07de071f723f6d3610cc Mon Sep 17 00:00:00 2001 From: George Edward Bulmer Date: Mon, 12 Feb 2018 14:22:25 +0000 Subject: [PATCH] Remove extraneous space --- qutebrowser/config/configexc.py | 2 +- tests/unit/config/test_configcommands.py | 2 +- tests/unit/config/test_configexc.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/config/configexc.py b/qutebrowser/config/configexc.py index c85aa2220..2c0e5a58f 100644 --- a/qutebrowser/config/configexc.py +++ b/qutebrowser/config/configexc.py @@ -93,7 +93,7 @@ class ConfigErrorDesc: def __str__(self): if self.traceback: - return '{} - {}: {} '.format(self.text, + return '{} - {}: {}'.format(self.text, self.exception.__class__.__name__, self.exception) return '{}: {}'.format(self.text, self.exception) diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index e1855349f..13b2ae943 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -318,7 +318,7 @@ class TestSource: expected = ("Errors occurred while reading config.py:\n" " Unhandled exception - ZeroDivisionError:" - " division by zero ") + " division by zero") assert str(excinfo.value) == expected diff --git a/tests/unit/config/test_configexc.py b/tests/unit/config/test_configexc.py index 2f2ce435f..87f3abb6a 100644 --- a/tests/unit/config/test_configexc.py +++ b/tests/unit/config/test_configexc.py @@ -74,7 +74,7 @@ def test_config_file_errors_str(errors): assert str(errors).splitlines() == [ 'Errors occurred while reading config.py:', ' Error text 1: Exception 1', - ' Error text 2 - Exception: Exception 2 ', + ' Error text 2 - Exception: Exception 2', ]