Don't error out if we don't have a valid study id when doing validation.
This commit is contained in:
parent
a78b23f108
commit
eec4b579a7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue