Skip to content

Commit

Permalink
Merge pull request #135 from opentensor/use-print-exception-instead
Browse files Browse the repository at this point in the history
Need to use print exception instead
  • Loading branch information
Eugene-hu authored Aug 28, 2023
2 parents 79ace50 + 44fb6c0 commit 8fa0b21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openvalidators/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import asyncio
import bittensor as bt
from traceback import print_exc
from traceback import print_exception

from openvalidators.forward import forward
from openvalidators.utils import should_checkpoint, checkpoint, should_reinit_wandb, reinit_wandb, load_state, save_state
Expand Down Expand Up @@ -58,4 +58,4 @@ async def run_forward():

except Exception as e:
bt.logging.error("Error in training loop", str(e))
bt.logging.debug(print_exc(e))
bt.logging.debug(print_exception(value=e))
4 changes: 2 additions & 2 deletions scripts/data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import openvalidators
import os
from analysis.utils import get_runs, download_data
from traceback import print_exc
from traceback import print_exception
from typing import List
from data_formatter import create_json_dataset, create_csv_dataset, create_openai_dataset

Expand Down Expand Up @@ -170,4 +170,4 @@ def create_mining_dataset(
)
except Exception as e:
bt.logging.error("Error in training loop", str(e))
bt.logging.debug(print_exc(e))
bt.logging.debug(print_exception(value=e))

0 comments on commit 8fa0b21

Please sign in to comment.