mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-03 10:50:23 +00:00
rename print_error to report, use it with together with package name
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import os
|
||||
import threading
|
||||
|
||||
from modules import shared
|
||||
from modules.errors import print_error
|
||||
from modules import shared, errors
|
||||
from modules.gitpython_hack import Repo
|
||||
from modules.paths_internal import extensions_dir, extensions_builtin_dir, script_path # noqa: F401
|
||||
|
||||
@@ -54,7 +53,7 @@ class Extension:
|
||||
if os.path.exists(os.path.join(self.path, ".git")):
|
||||
repo = Repo(self.path)
|
||||
except Exception:
|
||||
print_error(f"Error reading github repository info from {self.path}", exc_info=True)
|
||||
errors.report(f"Error reading github repository info from {self.path}", exc_info=True)
|
||||
|
||||
if repo is None or repo.bare:
|
||||
self.remote = None
|
||||
@@ -70,7 +69,7 @@ class Extension:
|
||||
self.version = self.commit_hash[:8]
|
||||
|
||||
except Exception:
|
||||
print_error(f"Failed reading extension data from Git repository ({self.name})", exc_info=True)
|
||||
errors.report(f"Failed reading extension data from Git repository ({self.name})", exc_info=True)
|
||||
self.remote = None
|
||||
|
||||
self.have_info_from_repo = True
|
||||
|
Reference in New Issue
Block a user