Download modules/errors.py from arbinger5217/arbinger: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/arbinger5217/arbinger/resolve/main/modules/errors.py
- Command line
-
hf download hf://arbinger5217/arbinger/modules/errors.py
-
curl -L -o errors.py https://huggingface.co/arbinger5217/arbinger/resolve/main/modules/errors.py
219 Bytes
| import sys | |
| import traceback | |
| def run(code, task): | |
| try: | |
| code() | |
| except Exception as e: | |
| print(f"{task}: {type(e).__name__}", file=sys.stderr) | |
| print(traceback.format_exc(), file=sys.stderr) | |