Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
cymic
/
Waifu_Diffusion_Webui
like
1
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
679ffae
Waifu_Diffusion_Webui
/
modules
/
errors.py
cymic
Upload 41 files
e9ac57f
over 2 years ago
raw
Copy download link
history
blame
Safe
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)