diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-10-21 18:35:50 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-10-21 18:35:50 +0200 |
commit | 2d85e4100624f09f14a7256f81870f292d152af5 (patch) | |
tree | 6674b4df8a52befdc99acc69a66941db973e1bff | |
parent | ca114a076621c58f067e8b809e7ef4e27ad4e2c1 (diff) | |
download | qutebrowser-2d85e4100624f09f14a7256f81870f292d152af5.tar.gz qutebrowser-2d85e4100624f09f14a7256f81870f292d152af5.zip |
utils: Fix coverage pragma location
-rw-r--r-- | qutebrowser/utils/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py index 5784d754c..f42515c5c 100644 --- a/qutebrowser/utils/utils.py +++ b/qutebrowser/utils/utils.py @@ -669,12 +669,12 @@ def yaml_load(f: Union[str, IO[str]]) -> Any: r"of from 'collections\.abc' is deprecated.*"): try: data = yaml.load(f, Loader=YamlLoader) - except ValueError as e: + except ValueError as e: # pragma: no cover pyyaml_error = 'could not convert string to float' - if str(e).startswith(pyyaml_error): # pragma: no cover + if str(e).startswith(pyyaml_error): # WORKAROUND for https://github.com/yaml/pyyaml/issues/168 raise yaml.YAMLError(e) - raise # pragma: no cover + raise end = datetime.datetime.now() |