mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-13 01:52:16 +00:00
Cleanup lint issues
This commit is contained in:
@@ -121,7 +121,7 @@ class TelegramSmsBot:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.twilio_client.messages.create(body=message, to=to, from_=self.twilio_from_number)
|
self.twilio_client.messages.create(body=message, to=to, from_=self.twilio_from_number)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.logger.exception("Failed to send SMS due to exception")
|
self.logger.exception("Failed to send SMS due to exception")
|
||||||
await update.message.reply_markdown("Failed to send SMS")
|
await update.message.reply_markdown("Failed to send SMS")
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from smsbot.utils import TwilioMessage
|
from smsbot.utils.twilio import TwilioMessage
|
||||||
|
|
||||||
|
|
||||||
def test_twiliomessage_normal():
|
def test_twiliomessage_normal():
|
||||||
|
|||||||
Reference in New Issue
Block a user