mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-26 23:09:00 +08:00
removed unnecessary import modules.errors
This commit is contained in:
parent
04903af798
commit
b414c62ce4
@ -43,9 +43,7 @@ def check_python_version():
|
|||||||
supported_minors = [7, 8, 9, 10, 11]
|
supported_minors = [7, 8, 9, 10, 11]
|
||||||
|
|
||||||
if not (major == 3 and minor in supported_minors):
|
if not (major == 3 and minor in supported_minors):
|
||||||
import modules.errors
|
errors.print_error_explanation(f"""
|
||||||
|
|
||||||
modules.errors.print_error_explanation(f"""
|
|
||||||
INCOMPATIBLE PYTHON VERSION
|
INCOMPATIBLE PYTHON VERSION
|
||||||
|
|
||||||
This program is tested with 3.10.6 Python, but you have {major}.{minor}.{micro}.
|
This program is tested with 3.10.6 Python, but you have {major}.{minor}.{micro}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user