Update callbacks.py to show tracebacks on ValueError (#4892)

This commit is contained in:
Nehereus 2023-12-11 23:29:27 -06:00 committed by GitHub
parent 602b8c6210
commit 993ca51a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ class Iteratorize:
try: try:
ret = self.mfunc(callback=_callback, *args, **self.kwargs) ret = self.mfunc(callback=_callback, *args, **self.kwargs)
except ValueError: except ValueError:
traceback.print_exc()
pass pass
except: except:
traceback.print_exc() traceback.print_exc()