mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-13 10:02:15 +00:00
Fix linting issues
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user