Cleaner syntax for default region
This commit is contained in:
parent
3e492e6310
commit
45cc9528d2
|
@ -61,9 +61,7 @@ def send_via_ses(subject, body, targets):
|
||||||
:param targets:
|
:param targets:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
ses_region = current_app.config.get("LEMUR_SES_REGION")
|
ses_region = current_app.config.get("LEMUR_SES_REGION", "us-east-1")
|
||||||
if not ses_region:
|
|
||||||
ses_region = "us-east-1"
|
|
||||||
client = boto3.client("ses", region_name=ses_region)
|
client = boto3.client("ses", region_name=ses_region)
|
||||||
source_arn = current_app.config.get("LEMUR_SES_SOURCE_ARN")
|
source_arn = current_app.config.get("LEMUR_SES_SOURCE_ARN")
|
||||||
args = {
|
args = {
|
||||||
|
|
Loading…
Reference in New Issue