prevent potential bug
This commit is contained in:
+7
-4
@@ -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
|
||||
Reference in New Issue
Block a user