lunarflu HF Staff commited on
Commit
4a799bf
·
1 Parent(s): cef3448

hunting bugs

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -457,7 +457,15 @@ async def deepfloydif(ctx, *, prompt: str):
457
  await asyncio.sleep(1)
458
 
459
  '''
460
- z
 
 
 
 
 
 
 
 
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}")