Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
arbinger5217
/
arbinger
like
0
Follow
spartan.arbinger
1
Model card
Files
Files and versions
xet
Community
Copy to bucket
new
main
arbinger
/
modules
/
errors.py
unknown
envoie de la base
53bb790
over 3 years ago
raw
Copy download link
history
blame
contribute
delete
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)