From 2e565d5cee78ac9a8649237b735c77f5829c42a0 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 4 Nov 2024 10:12:16 -0800 Subject: [PATCH] ruff --- bittensor/core/extrinsics/root.py | 4 +++- bittensor/core/extrinsics/set_weights.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bittensor/core/extrinsics/root.py b/bittensor/core/extrinsics/root.py index 52e5105fd..445d2c0b0 100644 --- a/bittensor/core/extrinsics/root.py +++ b/bittensor/core/extrinsics/root.py @@ -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 diff --git a/bittensor/core/extrinsics/set_weights.py b/bittensor/core/extrinsics/set_weights.py index 95a8718cb..904b69992 100644 --- a/bittensor/core/extrinsics/set_weights.py +++ b/bittensor/core/extrinsics/set_weights.py @@ -179,7 +179,9 @@ def set_weights_extrinsic( logging.success(f"Finalized! 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