Skip to content

Commit

Permalink
less verbose synapse exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed May 23, 2024
1 parent 948720e commit c5ceb3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bittensor/axon.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,10 @@ def log_and_handle_error(
):
if isinstance(exception, SynapseException):
synapse = exception.synapse or synapse
# Display the traceback for user clarity.
bittensor.logging.trace(f"Forward exception: {traceback.format_exc()}")

bittensor.logging.trace(f"Forward handled exception: {exception}")
else:
bittensor.logging.trace(f"Forward exception: {traceback.format_exc()}")

if synapse.axon is None:
synapse.axon = bittensor.TerminalInfo()
Expand Down

0 comments on commit c5ceb3f

Please sign in to comment.