Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add traceback on error #115

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import traceback

from modules import shared

from scripts.io.util import load_classes_from_directory
Expand All @@ -8,4 +10,5 @@
try:
cls().install()
except Exception as e:
print(traceback.format_exc())
print(f"Face Editor: {e}")
2 changes: 2 additions & 0 deletions scripts/use_cases/registry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import traceback
from typing import Dict

from scripts.io.util import load_classes_from_directory
Expand All @@ -13,6 +14,7 @@ def create(all_classes, type: str) -> Dict:
c = cls()
d[c.name().lower()] = c
except Exception as e:
print(traceback.format_exc())
print(f"Face Editor: {cls}, Error: {e}")
return d

Expand Down