Skip to content

Commit 8335d03

Browse files
committed
Make sure we have a list.
Something from PB on PROD is very different from what we expect...
1 parent b61e08c commit 8335d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crc/services/study_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def sync_with_protocol_builder_if_enabled(self, user, specs):
555555
for study in db_studies:
556556
# we don't manage Exempt studies
557557
pb_study_info = ProtocolBuilderService.get_irb_info(study.id)
558-
if len(pb_study_info) > 0:
558+
if isinstance(pb_study_info, list) and len(pb_study_info) > 0:
559559
if ('IRB_REVIEW_TYPE' in pb_study_info[0] and
560560
pb_study_info[0]['IRB_REVIEW_TYPE'] ==
561561
'Exempt'):

0 commit comments

Comments
 (0)