Browse files

Add error handling for Frontend UPnP autodetection.

This adds an error handling block to UPnP detection of the Frontend
connection class, to allow the remainder of the list to be returned if
one machine responding to the query cannot be connected to.
  • Loading branch information...
1 parent 2861862 commit 8c9fc7a1d3e4730c06bc0abac66be548aacbc11b @wagnerrp wagnerrp committed Sep 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/bindings/python/MythTV/
@@ -468,7 +468,10 @@ def fromUPNP(cls, timeout=5):
for res in msearch.searchMythFE(timeout):
ip, port = reLOC.match(res['location']).group(1,2)
port = 6546
- yield cls(ip, port)
+ try:
+ yield cls(ip, port)
+ except MythFEError:
+ pass
def testList(cls, felist):

0 comments on commit 8c9fc7a

Please sign in to comment.