Skip to content

Commit 9d5a469

Browse files
committed
style: fix formatting in bot.py for logging configuration and add missing newline
1 parent 9c2f21c commit 9d5a469

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
2929
handlers=[
3030
logging.StreamHandler(),
31-
*( [logging.FileHandler(LOG_FILE)] if LOG_FILE else [] )
32-
]
31+
*([logging.FileHandler(LOG_FILE)] if LOG_FILE else []),
32+
],
3333
)
3434
logger = logging.getLogger(__name__)
3535

@@ -42,6 +42,7 @@
4242
dp.include_router(planner.router)
4343

4444
if __name__ == "__main__":
45+
4546
async def main():
4647
try:
4748
logger.info("Starting bot...")
@@ -51,5 +52,4 @@ async def main():
5152
except Exception as e: # pylint: disable=broad-exception-caught
5253
logger.error("Error starting bot: %s", e)
5354

54-
5555
asyncio.run(main())

0 commit comments

Comments
 (0)