Skip to content

Commit

Permalink
Archive request source path can be None
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes committed Jun 18, 2024
1 parent ce7498e commit 58fc061
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ai_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ def finalise(self):
json_requests = []

for path, archive in self.archiving.items():
request = dict(source=f'"{path}"', expect=archive.expect)
request = dict(expect=archive.expect)
if path is not None:
request["source"] = f'"{path}"'
request.update(archive.request)
request.update(self._requests_extra)

Expand Down

0 comments on commit 58fc061

Please sign in to comment.