Skip to content

Commit

Permalink
[app][fix] catch oai load exc close #20
Browse files Browse the repository at this point in the history
  • Loading branch information
M3ssman committed Jun 14, 2024
1 parent af41a1b commit 6555df1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/odem/ocrd3_odem.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def load(self):
loader = df.OAILoader(req_dst_dir, base_url=base_url, post_oai=dfm.extract_mets)
loader.store = self.store
loader.load(request_identifier, local_dst=req_dst)
except df.OAILoadClientError as load_err:
raise ODEMException(load_err.args[0]) from load_err
except RuntimeError as _err:
raise ODEMException(_err.args[0]) from _err

Expand Down

0 comments on commit 6555df1

Please sign in to comment.