Download modules/errors.py from nolanaatama/stable-diffusion-webui: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/nolanaatama/stable-diffusion-webui/resolve/main/modules/errors.py
- Command line
-
hf download hf://nolanaatama/stable-diffusion-webui/modules/errors.py
-
curl -L -o errors.py https://huggingface.co/nolanaatama/stable-diffusion-webui/resolve/main/modules/errors.py
229 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) | |