diff options
| author | Fuwn <[email protected]> | 2023-08-11 11:00:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-08-11 11:00:40 -0700 |
| commit | d529ca3d9396eca619237163b954c62038968dd2 (patch) | |
| tree | 54d80595f29aaaa26a1db719db768522649dc685 /src/due/__init__.py | |
| parent | fix(html): manga sort (diff) | |
| download | old.due.moe-d529ca3d9396eca619237163b954c62038968dd2.tar.xz old.due.moe-d529ca3d9396eca619237163b954c62038968dd2.zip | |
feat(due): enhanced errors
Diffstat (limited to 'src/due/__init__.py')
| -rw-r--r-- | src/due/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/due/__init__.py b/src/due/__init__.py index 3cbe721..1356755 100644 --- a/src/due/__init__.py +++ b/src/due/__init__.py @@ -6,6 +6,7 @@ from dotenv import load_dotenv from due.cache import cache import os import logging +import traceback load_dotenv() @@ -28,7 +29,7 @@ def error_handler(e): """<p>You have encountered a critcal application error. This means that one or more media entries on your lists have resolved abnormaly.</p> <p></p> <p>Contact <a href="https://anilist.co/user/fuwn">Fuwn</a> on AniList for help; please, attach the error code below.</p>""", - f"<pre>{e}</pre>", + f"<pre>{traceback.format_exc()}</pre>", ) |