Require "sender" argument to send_sms method

In response to [^1].

[^1]: https://github.com/alphagov/notifications-api/pull/3493#discussion_r836616675
This commit is contained in:
Ben Thorner
2022-03-29 12:37:42 +01:00
parent 015152bab2
commit a2e1d03009
2 changed files with 3 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ class SmsClient(Client):
self.statsd_client.incr(f"clients.{self.name}.error")
self.current_app.logger.warning(log_message)
def send_sms(self, to, content, reference, international, sender=None):
def send_sms(self, to, content, reference, international, sender):
start_time = monotonic()
sender = self.from_number if sender is None else sender