opentensor / validators

Repository for bittensor validators
https://www.bittensor.com/
MIT License
14 stars 9 forks source link

print_exception error on run.py catch clause #145

Open p-ferreira opened 1 year ago

p-ferreira commented 1 year ago

I noticed that some validators are breaking with the following error message:

TypeError: print_exception() missing 1 required positional argument: 'exc'

This started happening after #135 merge, at run.py catch clause. I was able to simulate the issue with the following chunk of code:

from traceback import print_exception

try:
    raise Exception('Test')
except Exception as err:
    print_exception(print_exception(value=e))

Solution

The solution should be as easy as implementing the function with the right call, without missing required positional arguments