Skip to content

Commit ac475f0

Browse files
authored
Merge pull request #2770 from Thykof/feat--silent-aiohttp.ClientOSError
Dendrite: log ClientOSError as Debug
2 parents 0c75b51 + 81cfb33 commit ac475f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor/core/dendrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def log_exception(self, exception: Exception):
258258
"""
259259
error_id = str(uuid.uuid4())
260260
error_type = exception.__class__.__name__
261-
if isinstance(exception, (aiohttp.ClientConnectorError, asyncio.TimeoutError)):
261+
if isinstance(exception, (aiohttp.ClientOSError, asyncio.TimeoutError)):
262262
logging.debug(f"{error_type}#{error_id}: {exception}")
263263
else:
264264
logging.error(f"{error_type}#{error_id}: {exception}")

0 commit comments

Comments
 (0)