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.
(cherry picked from commit 8c9fc7a)
  • Loading branch information
wagnerrp committed Sep 20, 2012
1 parent bd0f9eb commit c933730
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 c933730

Please sign in to comment.