mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-09 03:41:02 -08:00
feat(hianime-provider): scaffhold with gemini using aniwatch repo by ghoshRitesh12
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
from rich.traceback import install as rich_install
|
||||
|
||||
from ...core.constants import PROJECT_NAME
|
||||
|
||||
|
||||
def custom_exception_hook(exc_type, exc_value, exc_traceback):
|
||||
print(f"{exc_type.__name__}: {exc_value}")
|
||||
@@ -16,6 +19,9 @@ def setup_exceptions_handler(
|
||||
rich_traceback: bool | None,
|
||||
rich_traceback_theme: str,
|
||||
):
|
||||
if dev:
|
||||
# auto set env
|
||||
os.environ[f"{PROJECT_NAME}_DEBUG"] = "1"
|
||||
if trace or dev:
|
||||
sys.excepthook = default_exception_hook
|
||||
if rich_traceback:
|
||||
|
||||
Reference in New Issue
Block a user