Skip to content

Commit df09374

Browse files
committed
format update
1 parent e4fe6de commit df09374

File tree

1 file changed

+12
-4
lines changed
  • techsupport_bot/commands

1 file changed

+12
-4
lines changed

techsupport_bot/commands/htd.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,24 @@ async def htd_command(self, ctx: commands.Context, val_to_convert: str) -> None:
305305
try:
306306
int_list = self.convert_list_to_ints(parsed_list.copy())
307307
except ValueError:
308-
parsed_list_str = str(parsed_list) # Convert the list to a string to only print so many.
308+
parsed_list_str = str(
309+
parsed_list
310+
) # Convert the list to a string to only print so many.
309311
embed = auxiliary.prepare_deny_embed(
310312
message="Unable to convert value, are you sure it's valid?",
311313
)
312314
if parsed_list[0].startswith("0x"):
313-
embed.set_footer(text=f"Tried to convert {parsed_list_str[1:31]} to hex")
315+
embed.set_footer(
316+
text=f"Tried to convert {parsed_list_str[1:31]} to hex"
317+
)
314318
elif parsed_list[0].startswith("0b"):
315-
embed.set_footer(text=f"Tried to convert {parsed_list_str[1:31]} to binary")
319+
embed.set_footer(
320+
text=f"Tried to convert {parsed_list_str[1:31]} to binary"
321+
)
316322
else:
317-
embed.set_footer(text=f"Tried to convert {parsed_list_str[1:31]} to int")
323+
embed.set_footer(
324+
text=f"Tried to convert {parsed_list_str[1:31]} to int"
325+
)
318326
await ctx.send(embed=embed)
319327
return
320328

0 commit comments

Comments
 (0)