restore try except
This commit is contained in:
parent
b8dfbe88d0
commit
c2d56f2718
@ -84,7 +84,7 @@ class ActualUtils(commands.Cog):
|
|||||||
except:
|
except:
|
||||||
ip = "192.168.1.80"
|
ip = "192.168.1.80"
|
||||||
|
|
||||||
# try:
|
try:
|
||||||
file_path = await stable_diffusion.generate_image(
|
file_path = await stable_diffusion.generate_image(
|
||||||
ip=ip, port=port, prompt=prompt
|
ip=ip, port=port, prompt=prompt
|
||||||
)
|
)
|
||||||
@ -95,10 +95,10 @@ class ActualUtils(commands.Cog):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
# except Exception as e:
|
except Exception as e:
|
||||||
# await ctx.reply(
|
await ctx.reply(
|
||||||
# "Stable diffusion isnt running right now, sorry.\n%s" % e,
|
"Stable diffusion isnt running right now, sorry.\n%s" % e,
|
||||||
# )
|
)
|
||||||
|
|
||||||
@commands.command(name="trackdays")
|
@commands.command(name="trackdays")
|
||||||
async def trackdays(self, ctx: commands.Context):
|
async def trackdays(self, ctx: commands.Context):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
import requests
|
|
||||||
import httpx
|
import httpx
|
||||||
import socket
|
import socket
|
||||||
import tempfile
|
import tempfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user