From cec402bffd195a7aa5eba4492b178776b385f7b38e0f73e10b0241e09c2ffa92 Mon Sep 17 00:00:00 2001 From: f4lco Date: Sun, 17 Nov 2024 10:41:13 +0100 Subject: [PATCH] Bump dependencies --- .pylintrc | 2 +- tests/test_retrieval.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index 0d52e56..f26487b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -467,4 +467,4 @@ known-third-party=enchant # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception diff --git a/tests/test_retrieval.py b/tests/test_retrieval.py index 2e1473c..aa96fc9 100644 --- a/tests/test_retrieval.py +++ b/tests/test_retrieval.py @@ -39,6 +39,5 @@ def test_retrieval(canteen): try: with app.app_context(), app.test_request_context(): canteen_xml_feed(canteen.key) - except json.JSONDecodeError as e: + except json.JSONDecodeError: pytest.xfail('JSON endpoint returned garbage (issue #6)') - raise e # Appease PyCharm inspection - xfail always raises