From 5b835569850ae3f9be11d69b209a485816cf301f Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 27 Aug 2014 13:49:01 +0300 Subject: [PATCH] Improved handling of DCPs without mxf (just subtitles). --- source/dcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dcp.py b/source/dcp.py index cf5a846..2ca655e 100755 --- a/source/dcp.py +++ b/source/dcp.py @@ -157,7 +157,7 @@ class DCP: try: self.duration = max ([x.duration for x in self.assets if hasattr (x, 'duration')]) except: - pass + self.duration = 'Unknown' if __name__ == '__main__': -- GitLab