Don't error out if we don't have a valid study id when doing validation.

This commit is contained in:
Dan Funk 2020-06-15 11:27:28 -04:00
parent a78b23f108
commit eec4b579a7
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class StudyService(object):
that is available.."""
# Get PB required docs, if Protocol Builder Service is enabled.
if ProtocolBuilderService.is_enabled():
if ProtocolBuilderService.is_enabled() and study_id is not None:
try:
pb_docs = ProtocolBuilderService.get_required_docs(study_id=study_id)
except requests.exceptions.ConnectionError as ce: