Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed Nov 4, 2024
1 parent 6e58f80 commit 2e565d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bittensor/core/extrinsics/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def make_substrate_call_with_retry():
# process if registration successful, try again if pow is still valid
response.process_events()
if not response.is_success:
return False, format_error_message(response.error_message, substrate=self.substrate)
return False, format_error_message(
response.error_message, substrate=self.substrate
)
# Successful registration
else:
return True, None
Expand Down
4 changes: 3 additions & 1 deletion bittensor/core/extrinsics/set_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def set_weights_extrinsic(
logging.success(f"<green>Finalized!</green> Set weights: {str(success)}")
return True, "Successfully set weights and Finalized."
else:
error_message = format_error_message(error_message, substrate=subtensor.substrate)
error_message = format_error_message(
error_message, substrate=subtensor.substrate
)
logging.error(error_message)
return False, error_message

Expand Down

0 comments on commit 2e565d5

Please sign in to comment.