Remove obsolete try-except block
This commit is contained in:
parent
de0686c50a
commit
5bacbc9d38
@ -1193,13 +1193,9 @@ 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:
|
except UnicodeEncodeError as e:
|
||||||
raise configexc.ValidationError(value, str(e))
|
raise configexc.ValidationError(value, str(e))
|
||||||
return
|
|
||||||
except UnicodeEncodeError as e:
|
|
||||||
raise configexc.ValidationError(value, str(e))
|
|
||||||
|
|
||||||
|
|
||||||
class AutoSearch(BaseType):
|
class AutoSearch(BaseType):
|
||||||
|
Loading…
Reference in New Issue
Block a user