Skip to content

Conversation

@Thykof
Copy link
Member

@Thykof Thykof commented Dec 16, 2025

No description provided.

@Thykof Thykof requested a review from Copilot December 16, 2025 19:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors exception handling to use bt.logging.exception() instead of manually logging errors and printing stack traces. The main benefits are cleaner code and automatic stack trace inclusion in exception logs.

Key Changes

  • Replaced bt.logging.error() + traceback.print_exc() patterns with bt.logging.exception()
  • Removed unused traceback and sys imports across multiple files
  • Moved asset validation logic from Validator class to PriceDataProvider.__init__()

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
synth/validator/price_data_provider.py Added __init__ method with asset validation moved from validator
synth/validator/miner_data_handler.py Replaced manual exception logging with bt.logging.exception() across 11 exception handlers
synth/base/validator.py Simplified exception handling in validator run loop
synth/base/miner.py Replaced traceback.format_exc() with bt.logging.exception()
synth/base/dendrite.py Updated exception logging in log_exception function
neurons/validator.py Updated PriceDataProvider instantiation and removed duplicate asset validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants