diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-03-13 13:53:09 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-03-13 13:53:09 +0100 |
commit | 33463325f46f4f770fa9b7ea0e5c38f6569a8f21 (patch) | |
tree | 092c6a4e70c4a58eac42a5665c7357579e06dae4 /tests/unit/browser/test_history.py | |
parent | 068168f351b510725112bd8136d22fcfff41ea15 (diff) | |
download | qutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.tar.gz qutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.zip |
Eschew the extraneous elses
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r-- | tests/unit/browser/test_history.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py index 3d0f9f0bf..95edb5d41 100644 --- a/tests/unit/browser/test_history.py +++ b/tests/unit/browser/test_history.py @@ -190,8 +190,7 @@ class TestAdd: def raise_error(url, replace=False): if environmental: raise sql.SqlEnvironmentError("Error message") - else: - raise sql.SqlBugError("Error message") + raise sql.SqlBugError("Error message") if completion: monkeypatch.setattr(web_history.completion, 'insert', raise_error) |