mirror of
https://github.com/nikdoof/smsbot.git
synced 2026-01-30 20:18:14 +00:00
Fix linting issues
This commit is contained in:
@@ -27,7 +27,7 @@ console_scripts =
|
|||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
format = wemake
|
format = wemake
|
||||||
ignore = D,E501,WPS432,WPS323,WPS2,S104,WPS412
|
ignore = D,E501,WPS432,WPS323,WPS2,S104,WPS412,WPS100
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
exclude = setup.py,env,build
|
exclude = setup.py,env,build
|
||||||
|
|
||||||
|
|||||||
@@ -39,4 +39,4 @@ def main():
|
|||||||
# Start webhooks
|
# Start webhooks
|
||||||
webhooks = TwilioWebhookHandler()
|
webhooks = TwilioWebhookHandler()
|
||||||
webhooks.set_bot(telegram_bot)
|
webhooks.set_bot(telegram_bot)
|
||||||
webhooks.serve(host=listen_host, port=listen_port)
|
webhooks.serve(host=listen_host, port=listen_port)
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class TwilioWebhookHandler(object):
|
|||||||
def call(self):
|
def call(self):
|
||||||
current_app.logger.info('Received Call from {From}'.format(**request.values.to_dict()))
|
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()))
|
self.bot.send_subscribers('Received Call from {From}, rejecting.'.format(**request.values.to_dict()))
|
||||||
|
|
||||||
# Always reject calls
|
# Always reject calls
|
||||||
return '<Response><Reject/></Response>'
|
return '<Response><Reject/></Response>'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user