From 5bacbc9d3862c7b8225dd9ad3416a35b5fb6a090 Mon Sep 17 00:00:00 2001 From: Lamar Pavel Date: Sat, 6 Jun 2015 14:07:57 +0200 Subject: [PATCH] Remove obsolete try-except block --- qutebrowser/config/configtypes.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index ef23cbbbe..3b623e3ab 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -1193,11 +1193,7 @@ class UserStyleSheet(File): # FIXME We just try if it is encodable, maybe we should # validate CSS? # https://github.com/The-Compiler/qutebrowser/issues/115 - try: - value.encode('utf-8') - except UnicodeEncodeError as e: - raise configexc.ValidationError(value, str(e)) - return + value.encode('utf-8') except UnicodeEncodeError as e: raise configexc.ValidationError(value, str(e))