Fix try-except-raise for pylint 2.0
See https://github.com/PyCQA/pylint/issues/2302
This commit is contained in:
parent
e0f3285f05
commit
e4a772c61c
@ -187,8 +187,6 @@ def data_for_url(url):
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
# FIXME:qtwebengine how to handle this?
|
# FIXME:qtwebengine how to handle this?
|
||||||
raise QuteSchemeOSError(e)
|
raise QuteSchemeOSError(e)
|
||||||
except QuteSchemeError:
|
|
||||||
raise
|
|
||||||
|
|
||||||
assert mimetype is not None, url
|
assert mimetype is not None, url
|
||||||
if mimetype == 'text/html' and isinstance(data, str):
|
if mimetype == 'text/html' and isinstance(data, str):
|
||||||
|
@ -576,7 +576,7 @@ def read_autoconfig():
|
|||||||
"""Read the autoconfig.yml file."""
|
"""Read the autoconfig.yml file."""
|
||||||
try:
|
try:
|
||||||
config.instance.read_yaml()
|
config.instance.read_yaml()
|
||||||
except configexc.ConfigFileErrors:
|
except configexc.ConfigFileErrors: # pylint: disable=try-except-raise
|
||||||
raise # caught in outer block
|
raise # caught in outer block
|
||||||
except configexc.Error as e:
|
except configexc.Error as e:
|
||||||
desc = configexc.ConfigErrorDesc("Error", e)
|
desc = configexc.ConfigErrorDesc("Error", e)
|
||||||
|
Loading…
Reference in New Issue
Block a user