Skip to content

Commit b730d25

Browse files
committed
fix: add missing null check
1 parent 7e54dd3 commit b730d25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/api/views/apple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ def apple_update_notification():
249249
return jsonify(error="Unauthorized"), 401
250250

251251
if not (
252-
data.get("unified_receipt")
252+
data
253+
and data.get("unified_receipt")
253254
and data["unified_receipt"].get("latest_receipt_info")
254255
):
255256
LOG.d("Invalid data %s", data)

0 commit comments

Comments
 (0)