Remove obsolete try-except block

This commit is contained in:
Lamar Pavel 2015-06-06 14:07:57 +02:00
parent de0686c50a
commit 5bacbc9d38

View File

@ -1193,11 +1193,7 @@ class UserStyleSheet(File):
# FIXME We just try if it is encodable, maybe we should # FIXME We just try if it is encodable, maybe we should
# validate CSS? # validate CSS?
# https://github.com/The-Compiler/qutebrowser/issues/115 # https://github.com/The-Compiler/qutebrowser/issues/115
try: value.encode('utf-8')
value.encode('utf-8')
except UnicodeEncodeError as e:
raise configexc.ValidationError(value, str(e))
return
except UnicodeEncodeError as e: except UnicodeEncodeError as e:
raise configexc.ValidationError(value, str(e)) raise configexc.ValidationError(value, str(e))