Skip to content

Commit dabc522

Browse files
committed
fix pylint
1 parent c5e4c1b commit dabc522

File tree

1 file changed

+6
-6
lines changed
  • packages/service-library/src/servicelib/fastapi

1 file changed

+6
-6
lines changed

packages/service-library/src/servicelib/fastapi/tracing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,32 +150,32 @@ def _shutdown() -> None:
150150
if HAS_AIOPG:
151151
try:
152152
AiopgInstrumentor().uninstrument()
153-
except Exception: # pylint:disable=bare-except
153+
except Exception: # pylint:disable=broad-exception-caught
154154
_logger.exception("Failed to uninstrument AiopgInstrumentor")
155155
if HAS_AIOPIKA_INSTRUMENTOR:
156156
try:
157157
AioPikaInstrumentor().uninstrument()
158-
except Exception: # pylint:disable=bare-except
158+
except Exception: # pylint:disable=broad-exception-caught
159159
_logger.exception("Failed to uninstrument AioPikaInstrumentor")
160160
if HAS_ASYNCPG:
161161
try:
162162
AsyncPGInstrumentor().uninstrument()
163-
except Exception: # pylint:disable=bare-except
163+
except Exception: # pylint:disable=broad-exception-caught
164164
_logger.exception("Failed to uninstrument AsyncPGInstrumentor")
165165
if HAS_REDIS:
166166
try:
167167
RedisInstrumentor().uninstrument()
168-
except Exception: # pylint:disable=bare-except
168+
except Exception: # pylint:disable=broad-exception-caught
169169
_logger.exception("Failed to uninstrument RedisInstrumentor")
170170
if HAS_BOTOCORE:
171171
try:
172172
BotocoreInstrumentor().uninstrument()
173-
except Exception: # pylint:disable=bare-except
173+
except Exception: # pylint:disable=broad-exception-caught
174174
_logger.exception("Failed to uninstrument BotocoreInstrumentor")
175175
if HAS_REQUESTS:
176176
try:
177177
RequestsInstrumentor().uninstrument()
178-
except Exception: # pylint:disable=bare-except
178+
except Exception: # pylint:disable=broad-exception-caught
179179
_logger.exception("Failed to uninstrument RequestsInstrumentor")
180180

181181

0 commit comments

Comments
 (0)