mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -05:00
clean flake8 except provider code
This commit is contained in:
@@ -20,7 +20,7 @@ class AwsSnsClient(SmsClient):
|
||||
self.current_app = current_app
|
||||
self.statsd_client = statsd_client
|
||||
self.long_code_regex = re.compile(r"^\+1\d{10}$")
|
||||
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return 'sns'
|
||||
@@ -86,4 +86,4 @@ class AwsSnsClient(SmsClient):
|
||||
raise ValueError("No valid numbers found for SMS delivery")
|
||||
|
||||
def _send_with_dedicated_phone_number(self, sender):
|
||||
return sender and re.match(self.long_code_regex, sender)
|
||||
return sender and re.match(self.long_code_regex, sender)
|
||||
|
||||
Reference in New Issue
Block a user