From 84d0afae4caf3ab03282b094021baa22dbf4d7dc Mon Sep 17 00:00:00 2001 From: kevgliss Date: Tue, 8 Sep 2015 17:56:20 -0700 Subject: [PATCH] fixing email internvals --- lemur/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/manage.py b/lemur/manage.py index 90d59224..5164474d 100755 --- a/lemur/manage.py +++ b/lemur/manage.py @@ -299,7 +299,7 @@ class InitializeApp(Command): sys.stdout.write("[+] Creating expiration email notifications!\n") sys.stdout.write("[!] Using {recipients} as specified by LEMUR_SECURITY_TEAM_EMAIL for notifications\n") - intervals = current_app.config.get("LEMUR_DEFAULT_EXPIRATION_NOTIFICATION_INTERVALS") + intervals = current_app.config.get("LEMUR_DEFAULT_EXPIRATION_NOTIFICATION_INTERVALS", []) sys.stdout.write( "[!] Creating {num} notifications for {intervals} days as specified by LEMUR_DEFAULT_EXPIRATION_NOTIFICATION_INTERVALS\n".format( num=len(intervals),