From 1cc3c9ec3136ba689e15aaf8961cc44ace8d6c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laur=C3=A9line=20Gu=C3=A9rin?= Date: Mon, 30 Aug 2021 16:38:04 +0200 Subject: [PATCH] misc: fix pylint errors with 2.10.2 version (#56489) --- pylint.rc | 4 ++++ tox.ini | 2 +- wcs/compat.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pylint.rc b/pylint.rc index de13f2f7e..920daf291 100644 --- a/pylint.rc +++ b/pylint.rc @@ -53,6 +53,10 @@ disable= unused-argument +[TESTOPTIONS] +ignored-parents=wcs.qommon.TenantAwareThread + + [REPORTS] output-format=parseable include-ids=yes diff --git a/tox.ini b/tox.ini index d1dd80b40..d1fe9eeba 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ deps = django-ratelimit<3 pyproj astroid!=2.5.7 - pylint<2.10 + pylint Quixote>=3.0,<3.2 pre-commit pyzbar diff --git a/wcs/compat.py b/wcs/compat.py index bc90187e0..8c0a261b5 100644 --- a/wcs/compat.py +++ b/wcs/compat.py @@ -205,7 +205,7 @@ class CompatWcsPublisher(WcsPublisher): output = self.try_publish(request) except PublishError as exc: output = self.finish_interrupted_request(exc) - except Exception as exc: + except Exception: output = self.finish_failed_request() response = request.response