From 0dbe008011285f024621e414918c4e153757d3d7 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 27 Jul 2021 17:03:27 -0400 Subject: [PATCH] Small fixes from making CSV examples (#1963) * Closes #1958 --- CTFd/utils/csv/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CTFd/utils/csv/__init__.py b/CTFd/utils/csv/__init__.py index d4f15a66..21e3f01b 100644 --- a/CTFd/utils/csv/__init__.py +++ b/CTFd/utils/csv/__init__.py @@ -252,8 +252,8 @@ def load_challenges_csv(dict_reader): hints = line.pop("hints", None) challenge_type = line.pop("type", "standard") - # Load in custome type_data - type_data = json.loads(line.pop("type_data", "{}")) + # Load in custom type_data + type_data = json.loads(line.pop("type_data", "{}") or "{}") line.update(type_data) ChallengeClass = get_chal_class(challenge_type)