Skip to content

Commit

Permalink
Add error handling for Frontend UPnP autodetection.
Browse files Browse the repository at this point in the history
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
wagnerrp committed Sep 20, 2012
1 parent 2861862 commit 8c9fc7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/bindings/python/MythTV/connections.py
Expand Up @@ -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

@classmethod
def testList(cls, felist):
Expand Down

0 comments on commit 8c9fc7a

Please sign in to comment.