Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 23b6ab8

Browse files
committed
Fix issue with SNS subscription checking
1 parent 6ef71e3 commit 23b6ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dj_elastictranscoder/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def endpoint(request):
2424

2525

2626
# handle SNS subscription
27-
if data['Type'] == 'SubscriptionConfirmation':
27+
if 'Type' in data and data['Type'] == 'SubscriptionConfirmation':
2828
subscribe_url = data['SubscribeURL']
2929
subscribe_body = """
3030
Please visit this URL below to confirm your subscription with SNS

0 commit comments

Comments
 (0)