Skip to content

Commit 4b9c005

Browse files
use variable name that doesn't shadow parameter
1 parent bf80420 commit 4b9c005

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/compact-connect/lambdas/python/data-events/handlers/military_audit_events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def military_audit_notification_listener(message: dict, tracker: NotificationTra
5353
if not provider_email:
5454
# this should not be possible, since only registered providers can upload military documentation
5555
# log the error and raise an exception
56-
message = 'Provider registered email not found in system'
57-
logger.error(message)
58-
raise CCInternalException(message)
56+
error_message = 'Provider registered email not found in system'
57+
logger.error(error_message)
58+
raise CCInternalException(error_message)
5959

6060
# Check if we should send the notification (idempotency)
6161
if not tracker.should_send_provider_notification():

0 commit comments

Comments
 (0)