Skip to content

Commit

Permalink
Merge pull request #1928 from backend-developers-ltd/less_verbose_syn…
Browse files Browse the repository at this point in the history
…apse_exc

less verbose handled synapse exceptions
  • Loading branch information
thewhaleking committed May 29, 2024
2 parents 9628ca7 + ad9c8b6 commit 59aaac0
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 59aaac0

Please sign in to comment.