From dbbfcbe2e8b074aa843de190c6a3edd60e7925a0 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Mon, 23 Jul 2018 15:52:46 +0200 Subject: [PATCH] Made live sources page more robust --- livestreams.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/livestreams.py b/livestreams.py index e542e24..36efddd 100644 --- a/livestreams.py +++ b/livestreams.py @@ -77,6 +77,8 @@ def streaming(): if not tree: continue s = tree.find("./server/application/[name='src']/live/stream/[name='%i']"%source['id']) + if not s: + continue for e in s.find("client/[publishing='']").getchildren(): source['stat'][e.tag] = e.text source['video'] = {} -- GitLab