mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-24 02:50:26 -08:00
rename print_error to report, use it with together with package name
This commit is contained in:
parent
d67ef01f62
commit
05933840f0
24 changed files with 69 additions and 90 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
import importlib.util
|
||||
|
||||
from modules.errors import print_error
|
||||
from modules import errors
|
||||
|
||||
|
||||
def load_module(path):
|
||||
|
|
@ -27,4 +27,4 @@ def preload_extensions(extensions_dir, parser):
|
|||
module.preload(parser)
|
||||
|
||||
except Exception:
|
||||
print_error(f"Error running preload() for {preload_script}", exc_info=True)
|
||||
errors.report(f"Error running preload() for {preload_script}", exc_info=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue