From 777e20446fc7d440900d8f4a59d1205f8f5111c8 Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Sun, 16 Jun 2024 02:27:48 +0200 Subject: [PATCH] skip external files with missing uri --- fcp3/sitemgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcp3/sitemgr.py b/fcp3/sitemgr.py index 7d17a64..6972feb 100644 --- a/fcp3/sitemgr.py +++ b/fcp3/sitemgr.py @@ -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,