diff --git a/livestreams.py b/livestreams.py index e542e24f7b740a40460d332b24e7216f099d339f..36efddda6e4129661ee0268e535ab60ede1a9e84 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'] = {}