Fix try-except-raise for pylint 2.0

See https://github.com/PyCQA/pylint/issues/2302
This commit is contained in:
Florian Bruhin 2018-07-16 14:44:07 +02:00
parent e0f3285f05
commit e4a772c61c
2 changed files with 1 additions and 3 deletions

View File

@ -187,8 +187,6 @@ def data_for_url(url):
except OSError as e:
# FIXME:qtwebengine how to handle this?
raise QuteSchemeOSError(e)
except QuteSchemeError:
raise
assert mimetype is not None, url
if mimetype == 'text/html' and isinstance(data, str):

View File

@ -576,7 +576,7 @@ def read_autoconfig():
"""Read the autoconfig.yml file."""
try:
config.instance.read_yaml()
except configexc.ConfigFileErrors:
except configexc.ConfigFileErrors: # pylint: disable=try-except-raise
raise # caught in outer block
except configexc.Error as e:
desc = configexc.ConfigErrorDesc("Error", e)