mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Better exception handling.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
@@ -243,7 +243,7 @@ def create_app(application):
|
||||
else:
|
||||
try:
|
||||
data_len = len(value.strip())
|
||||
except TypeError:
|
||||
except {TypeError, AttributeError}:
|
||||
application.logger.error(f"Env Var {key} invalid type: {type(value)}")
|
||||
else:
|
||||
application.logger.info(f"Env Var {key} Length: {data_len}")
|
||||
|
||||
Reference in New Issue
Block a user