Skip to content

Commit

Permalink
Catch a soap error. See #452
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Jan 29, 2024
1 parent f806ee1 commit d17abbf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ocd_backend/extractors/ibabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,15 @@ def run(self):
for item in results:
item['_ListName'] = result.ListName
item['_ReportName'] = result.ReportName
extra_info_item = self.client.service.GetListEntry(
Sitename=self.source_definition['ibabs_sitename'],
ListId=l.Key,
EntryId=item['id']
)
item['_Extra'] = list_entry_response_to_dict(extra_info_item)
try:
extra_info_item = self.client.service.GetListEntry(
Sitename=self.source_definition['ibabs_sitename'],
ListId=l.Key,
EntryId=item['id']
)
item['_Extra'] = list_entry_response_to_dict(extra_info_item)
except Exception as e:
item['_Extra'] = {}

report_dict = serialize_object(item, dict)

Expand Down

0 comments on commit d17abbf

Please sign in to comment.