@@ -545,7 +545,9 @@ async def _ensure_genesis(force: bool = False):
545545 try :
546546 await msg .pin ()
547547 except Exception as e :
548- logger .warning ("Failed to pin genesis message during unsnooze: %s" , e )
548+ logger .warning (
549+ "Failed to pin genesis message during unsnooze: %s" , e
550+ )
549551 self ._genesis_message = msg
550552 genesis_already_sent = True
551553 except Exception :
@@ -701,7 +703,10 @@ async def _ensure_genesis(force: bool = False):
701703 inline = False ,
702704 )
703705 except Exception as e :
704- logger .info ("Failed to add attachments field while replaying unsnoozed messages: %s" , e )
706+ logger .info (
707+ "Failed to add attachments field while replaying unsnoozed messages: %s" ,
708+ e ,
709+ )
705710 await _safe_send_to_channel (
706711 embeds = embeds ,
707712 allowed_mentions = discord .AllowedMentions .none (),
@@ -963,7 +968,9 @@ async def send_recipient_genesis_message():
963968 close_emoji = await self .bot .convert_emoji (close_emoji )
964969 await self .bot .add_reaction (initial_message , close_emoji )
965970 except Exception as e :
966- logger .info ("Failed to add self-close reaction to initial message: %s" , e )
971+ logger .info (
972+ "Failed to add self-close reaction to initial message: %s" , e
973+ )
967974 return
968975
969976 thread_creation_response = self .bot .config ["thread_creation_response" ]
@@ -1744,7 +1751,10 @@ async def reply(
17441751 if log_entry :
17451752 self .snooze_data = log_entry .get ("snooze_data" )
17461753 except Exception as e :
1747- logger .info ("Failed to fetch snooze_data before auto-unsnooze on reply: %s" , e )
1754+ logger .info (
1755+ "Failed to fetch snooze_data before auto-unsnooze on reply: %s" ,
1756+ e ,
1757+ )
17481758 try :
17491759 await self .restore_from_snooze ()
17501760 except Exception as e :
@@ -1757,7 +1767,10 @@ async def reply(
17571767 if await self .bot .get_or_fetch_member (guild , self .id ):
17581768 break
17591769 except discord .NotFound :
1760- logger .info ("Recipient not found in guild %s when checking mutual servers." , guild .id if hasattr (guild ,'id' ) else guild )
1770+ logger .info (
1771+ "Recipient not found in guild %s when checking mutual servers." ,
1772+ guild .id if hasattr (guild , "id" ) else guild ,
1773+ )
17611774 else :
17621775 return await message .channel .send (
17631776 embed = discord .Embed (
@@ -2912,13 +2925,18 @@ async def callback(self, interaction: discord.Interaction):
29122925 try :
29132926 await interaction .edit_original_response (view = None )
29142927 except Exception as inner_e :
2915- logger .debug ("Failed to remove view after selection failure: %s" , inner_e )
2928+ logger .debug (
2929+ "Failed to remove view after selection failure: %s" ,
2930+ inner_e ,
2931+ )
29162932 # Stop the view to end the interaction lifecycle
29172933 if self .view :
29182934 try :
29192935 self .view .stop ()
29202936 except Exception as e :
2921- logger .debug ("Failed to stop menu view after selection: %s" , e )
2937+ logger .debug (
2938+ "Failed to stop menu view after selection: %s" , e
2939+ )
29222940 # Now create channel
29232941 # Determine category: prefer option-specific category if configured and valid
29242942 sel_category = None
0 commit comments