From 37adad6b4023d55401e46cb67864cc62b84a910e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1dson=20Lucena?= Date: Fri, 26 Feb 2021 14:01:09 -0300 Subject: [PATCH] fix (extract_timings): ignores disqualified image Ignores images that do not have in or out attributes This usually occurs when the tag is contained in the tag --- src/download.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/download.py b/src/download.py index 2f73e685..c1be208e 100644 --- a/src/download.py +++ b/src/download.py @@ -51,8 +51,11 @@ def extract_timings(bbb_version): path = u'/usr/local/bigbluebutton/core/scripts/logo.png' j += 1 + if not (image.hasAttribute('in') and image.hasAttribute('out')): + continue + in_times = str(image.getAttribute('in')).split(' ') - out_times = image.getAttribute('out').split(' ') + out_times = str(image.getAttribute('out')).split(' ') temp = float(out_times[len(out_times) - 1]) if temp > total_length: