Skip to content

fix print_exception function call #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openvalidators/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ async def run_forward():
self.prev_block = ttl_get_block(self)
self.step += 1

except Exception as e:
bt.logging.error("Error in training loop", str(e))
bt.logging.debug(print_exception(value=e))
except Exception as err:
bt.logging.error("Error in training loop", str(err))
bt.logging.debug(print_exception(type(err), err, err.__traceback__))
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bittensor>=5.2.1,<6.0.0
transformers<=4.28.0
transformers==4.28.0
wandb==0.15.3
datasets==2.14.0
plotly==5.14.1
Expand Down
6 changes: 3 additions & 3 deletions scripts/data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ def create_mining_dataset(
with_score=export_mining_with_scoring_dataset,
export_openai_dataset=export_openai_dataset
)
except Exception as e:
bt.logging.error("Error in training loop", str(e))
bt.logging.debug(print_exception(value=e))
except Exception as err:
bt.logging.error("Error in data collector execution", str(err))
bt.logging.debug(print_exception(type(err), err, err.__traceback__))