Fix linting issues

This commit is contained in:
2022-06-09 09:57:53 +01:00
parent 5c89056a9e
commit 6fd8a2e8bd
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -39,4 +39,4 @@ def main():
# Start webhooks
webhooks = TwilioWebhookHandler()
webhooks.set_bot(telegram_bot)
webhooks.serve(host=listen_host, port=listen_port)
webhooks.serve(host=listen_host, port=listen_port)

View File

@@ -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 '<Response><Reject/></Response>'