diff --git a/setup.cfg b/setup.cfg index 14d41e6..5476cab 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,7 @@ console_scripts = [flake8] format = wemake -ignore = D,E501,WPS432,WPS323,WPS2,S104,WPS412 +ignore = D,E501,WPS432,WPS323,WPS2,S104,WPS412,WPS100 max-line-length = 120 exclude = setup.py,env,build diff --git a/smsbot/cli.py b/smsbot/cli.py index ae3ef1b..f50dd2e 100644 --- a/smsbot/cli.py +++ b/smsbot/cli.py @@ -39,4 +39,4 @@ def main(): # Start webhooks webhooks = TwilioWebhookHandler() webhooks.set_bot(telegram_bot) - webhooks.serve(host=listen_host, port=listen_port) \ No newline at end of file + webhooks.serve(host=listen_host, port=listen_port) diff --git a/smsbot/webhook_handler.py b/smsbot/webhook_handler.py index c712bbd..6942560 100644 --- a/smsbot/webhook_handler.py +++ b/smsbot/webhook_handler.py @@ -70,7 +70,7 @@ class TwilioWebhookHandler(object): def call(self): current_app.logger.info('Received Call from {From}'.format(**request.values.to_dict())) self.bot.send_subscribers('Received Call from {From}, rejecting.'.format(**request.values.to_dict())) - + # Always reject calls return ''