prevent potential bug

This commit is contained in:
zombieyang
2024-08-09 12:22:26 +08:00
parent 70ac307725
commit 007e1d7148
+7 -4
View File
@@ -1,6 +1,9 @@
#launch script for stable-diffusion
import launch
try:
import launch
package = 'python-socketio'
if not launch.is_installed(package):
launch.run_pip(f"install {package}", f"sd-ppp requirement: {package}")
package = 'python-socketio'
if not launch.is_installed(package):
launch.run_pip(f"install {package}", f"sd-ppp requirement: {package}")
except ImportError:
pass