Skip to content

Commit

Permalink
Catch soap error in some cases. See #452
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Jan 30, 2024
1 parent 7fcad88 commit becaf31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ocd_backend/extractors/ibabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ def run(self):

total_yield_count = 0
for l in selected_lists:
reports = self.client.service.GetListReports(Sitename=self.source_definition['ibabs_sitename'], ListId=l.Key)
try:
reports = self.client.service.GetListReports(Sitename=self.source_definition['ibabs_sitename'], ListId=l.Key)
except zeep.exceptions.Fault as e:
log.warning(f'[{self.source_definition["key"]}] Could not parse list report {l.Key} correctly!: {str(e)}')
continue
report = reports[0]
if len(reports) > 1:
try:
Expand Down

0 comments on commit becaf31

Please sign in to comment.