diff options
author | Spaceginner <ivan.demian2009@gmail.com> | 2023-01-25 17:33:35 +0000 |
---|---|---|
committer | Spaceginner <ivan.demian2009@gmail.com> | 2023-01-25 17:33:35 +0000 |
commit | 57096823fadbc18b33d9b89d2d3a02d5ebba29f4 (patch) | |
tree | 42cfe115d1cbcb34c64ce32a0a24106ac8f88d30 | |
parent | 2d92d05ca2fc1f394ce10daea5bbff606c89a924 (diff) | |
download | stable-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
-rw-r--r-- | launch.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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():
|