Skip to content

Commit

Permalink
skip external files with missing uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBab committed Jun 16, 2024
1 parent 92a035b commit 777e204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fcp3/sitemgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ def makeManifest(self):
datatoappend = []

def fileMsgLines(n, rec):
if rec.get('target', 'separate') == 'separate':
if rec.get('target', 'separate') == 'separate' and rec.get('uri', None):
return [ # FIXME: rec['name'] can be str or bytes. Find out which one and why.
"Files.%d.Name=%s" % (n, (rec['name'] if isinstance(rec['name'], str) else rec['name'].decode("utf-8"))),
"Files.%d.UploadFrom=redirect" % n,
Expand Down

0 comments on commit 777e204

Please sign in to comment.