From 0725523926e755d7728614b0205d0ce8f8714c90 Mon Sep 17 00:00:00 2001 From: maike Date: Sat, 11 Jul 2020 04:36:12 +0200 Subject: [PATCH] [email] Fix coding style --- kibicara/kibicara_mda.py | 4 +++- kibicara/platforms/email/webapi.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kibicara/kibicara_mda.py b/kibicara/kibicara_mda.py index ef19796..5e0dd9f 100644 --- a/kibicara/kibicara_mda.py +++ b/kibicara/kibicara_mda.py @@ -47,4 +47,6 @@ async def main(): 'author': mail.get_unixfrom(), 'secret': email_row.secret, } - requests.post('http://localhost:8000/api/hoods/%d/email/messages/' % (hood.id), data=body) + requests.post( + 'http://localhost:8000/api/hoods/%d/email/messages/' % (hood.id), data=body + ) diff --git a/kibicara/platforms/email/webapi.py b/kibicara/platforms/email/webapi.py index 5961712..5ea204d 100644 --- a/kibicara/platforms/email/webapi.py +++ b/kibicara/platforms/email/webapi.py @@ -158,7 +158,9 @@ async def email_message_create( logger.warning(str(message)) logger.warning(str(email_row)) if message.secret != email_row.secret: - logger.warning("Someone is trying to submit an email without the correct API secret") + logger.warning( + "Someone is trying to submit an email without the correct API secret" + ) raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED) # pass message.text to bot.py if await spawner.get(email_row).publish(Message(message.text)):