mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
add global exception handler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
import modules.shared as shared
|
||||
import importlib.util
|
||||
from types import ModuleType
|
||||
|
||||
@@ -29,4 +29,4 @@ def preload_extensions(extensions_dir, parser):
|
||||
|
||||
except Exception:
|
||||
print(f"Error running preload() for {preload_script}", file=sys.stderr)
|
||||
print(traceback.format_exc(), file=sys.stderr)
|
||||
shared.exception()
|
||||
|
||||
Reference in New Issue
Block a user