Skip to content

Commit d7d1785

Browse files
committed
chore: format
1 parent 8522fe3 commit d7d1785

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
from logging import Handler, LogRecord, NOTSET
2-
from discord.abc import GuildChannel
3-
41
import asyncio
2+
from logging import NOTSET, Handler, LogRecord
3+
4+
from discord.abc import GuildChannel
55

66

77
class DiscordHandler(Handler):
88
log_channel: GuildChannel | None
99

1010
def __init__(self, log_channel: GuildChannel | None = None):
1111
super().__init__(level=NOTSET)
12-
print(f'Initializing DiscordHandler for channel {log_channel}')
12+
print(f"Initializing DiscordHandler for channel {log_channel}")
1313
self.log_channel = log_channel
1414

1515
def emit(self, record: LogRecord) -> None:
1616
asyncio.create_task(self.async_emit(record))
1717

1818
async def async_emit(self, record: LogRecord):
1919
log = self.format(record)
20-
await self.log_channel.send(f'```{log}```')
20+
await self.log_channel.send(f"```{log}```")

0 commit comments

Comments
 (0)