hunting bugs
Browse files
app.py
CHANGED
@@ -457,7 +457,15 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
457 |
await asyncio.sleep(1)
|
458 |
|
459 |
'''
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
#deepfloydif try/except
|
462 |
except Exception as e:
|
463 |
print(f"Error: {e}")
|
|
|
457 |
await asyncio.sleep(1)
|
458 |
|
459 |
'''
|
460 |
+
except Exception as e:
|
461 |
+
print(f"Error: {e}")
|
462 |
+
if thread is None:
|
463 |
+
thread = await ctx.message.create_thread(name=f'Posting Error')
|
464 |
+
await thread.send(f"{ctx.author.mention} Encountered error while posting combined image in thread, {e}")
|
465 |
+
await fullqueue(e, thread)
|
466 |
+
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
467 |
+
await ctx.message.add_reaction('<:disagree:1098628957521313892>')
|
468 |
+
await thread.edit(archived=True)
|
469 |
#deepfloydif try/except
|
470 |
except Exception as e:
|
471 |
print(f"Error: {e}")
|