feat(hianime-provider): scaffhold with gemini using aniwatch repo by ghoshRitesh12

This commit is contained in:
Benexl
2025-08-12 12:21:35 +03:00
parent de774a58d2
commit de0c656bc6
14 changed files with 650 additions and 2 deletions

View File

@@ -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: