aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorSpaceginner <ivan.demian2009@gmail.com>2023-01-25 17:33:35 +0000
committerSpaceginner <ivan.demian2009@gmail.com>2023-01-25 17:33:35 +0000
commit57096823fadbc18b33d9b89d2d3a02d5ebba29f4 (patch)
tree42cfe115d1cbcb34c64ce32a0a24106ac8f88d30 /launch.py
parent2d92d05ca2fc1f394ce10daea5bbff606c89a924 (diff)
downloadstable-diffusion-webui-gfx803-57096823fadbc18b33d9b89d2d3a02d5ebba29f4.tar.gz
stable-diffusion-webui-gfx803-57096823fadbc18b33d9b89d2d3a02d5ebba29f4.tar.bz2
stable-diffusion-webui-gfx803-57096823fadbc18b33d9b89d2d3a02d5ebba29f4.zip
Remove a stacktrace from an assertion to not scare people
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/launch.py b/launch.py
index 86b4a32b..cf747e72 100644
--- a/launch.py
+++ b/launch.py
@@ -25,7 +25,10 @@ def check_python_version():
else:
version_range = range(7, 12)
- assert version.major == 3 and version.minor in version_range, "Unsupported Python version, please use Python 3.10.x instead. You can download latest release as of 25th January (3.10.9) from here: https://www.python.org/downloads/release/python-3109/"
+ try:
+ assert version.major == 3 and version.minor in version_range, "Unsupported Python version, please use Python 3.10.x instead. You can download latest release as of 25th January (3.10.9) from here: https://www.python.org/downloads/release/python-3109/"
+ except AssertionError as e:
+ print(e)
def commit_hash():