Skip to content

Commit

Permalink
add more specific exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Archento committed Aug 9, 2023
1 parent 84802d4 commit b76f767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uagents/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ async def broadcast(
message_type=type(message),
timeout=timeout,
)
except Exception as e:
self.logger.error(f"Error sending message to {address}: {e}")
except asyncio.exceptions.CancelledError:
self.logger.error(f"Error sending message to {address}")

async def send_raw(
self,
Expand Down

0 comments on commit b76f767

Please sign in to comment.