Fixed typo. Response should be list, not dict.

This commit is contained in:
mike cullerton 2021-05-03 14:52:29 -04:00
parent 576f3a661d
commit 7689281d68
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class IRBInfo(Script):
def do_task(self, task, study_id, workflow_id, *args, **kwargs):
irb_info = self.pb.get_irb_info(study_id)
if isinstance(irb_info, dict):
if irb_info:
return irb_info
else:
raise ApiError.from_task(code='missing_irb_info',