Skip to content

Commit 90c14ea

Browse files
committed
disable pylint bare expose
1 parent 3840e07 commit 90c14ea

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
@@ -154,32 +154,32 @@ def _shutdown() -> None:
154154
if HAS_AIOPG:
155155
try:
156156
AiopgInstrumentor().uninstrument()
157-
except Exception:
157+
except Exception: # pylint:disable=bare-except
158158
_logger.exception("Failed to uninstrument AiopgInstrumentor")
159159
if HAS_AIOPIKA_INSTRUMENTOR:
160160
try:
161161
AioPikaInstrumentor().uninstrument()
162-
except Exception:
162+
except Exception: # pylint:disable=bare-except
163163
_logger.exception("Failed to uninstrument AioPikaInstrumentor")
164164
if HAS_ASYNCPG:
165165
try:
166166
AsyncPGInstrumentor().uninstrument()
167-
except Exception:
167+
except Exception: # pylint:disable=bare-except
168168
_logger.exception("Failed to uninstrument AsyncPGInstrumentor")
169169
if HAS_REDIS:
170170
try:
171171
RedisInstrumentor().uninstrument()
172-
except Exception:
172+
except Exception: # pylint:disable=bare-except
173173
_logger.exception("Failed to uninstrument RedisInstrumentor")
174174
if HAS_BOTOCORE:
175175
try:
176176
BotocoreInstrumentor().uninstrument()
177-
except Exception:
177+
except Exception: # pylint:disable=bare-except
178178
_logger.exception("Failed to uninstrument BotocoreInstrumentor")
179179
if HAS_REQUESTS:
180180
try:
181181
RequestsInstrumentor().uninstrument()
182-
except Exception:
182+
except Exception: # pylint:disable=bare-except
183183
_logger.exception("Failed to uninstrument RequestsInstrumentor")
184184

185185

0 commit comments

Comments
 (0)