prevent empty string passing proctoring provider validation (#23610)

This commit is contained in:
Zachary Hancock
2020-04-06 09:45:10 -04:00
committed by GitHub
parent 3a73def603
commit 2cbc248a63

View File

@@ -232,7 +232,7 @@ class ProctoringProvider(String):
available_providers = get_available_providers()
if value and value not in available_providers:
if value is not None and value not in available_providers:
errors.append(
_('The selected proctoring provider, {proctoring_provider}, is not a valid provider. '
'Please select from one of {available_providers}.')