From eec4b579a7f27571948f81017f39ede0be1d2e4a Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Mon, 15 Jun 2020 11:27:28 -0400 Subject: [PATCH] Don't error out if we don't have a valid study id when doing validation. --- crc/services/study_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/services/study_service.py b/crc/services/study_service.py index 92ec265d..dade7998 100644 --- a/crc/services/study_service.py +++ b/crc/services/study_service.py @@ -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: