mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 19:02:27 +00:00
rename print_error to report, use it with together with package name
This commit is contained in:
@@ -9,7 +9,6 @@ from ldm.util import default
|
||||
from einops import rearrange
|
||||
|
||||
from modules import shared, errors, devices, sub_quadratic_attention
|
||||
from modules.errors import print_error
|
||||
from modules.hypernetworks import hypernetwork
|
||||
|
||||
import ldm.modules.attention
|
||||
@@ -139,7 +138,7 @@ if shared.cmd_opts.xformers or shared.cmd_opts.force_enable_xformers:
|
||||
import xformers.ops
|
||||
shared.xformers_available = True
|
||||
except Exception:
|
||||
print_error("Cannot import xformers", exc_info=True)
|
||||
errors.report("Cannot import xformers", exc_info=True)
|
||||
|
||||
|
||||
def get_available_vram():
|
||||
|
Reference in New Issue
Block a user