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.
(cherry picked from commit 8c9fc7a)
  • Loading branch information...
1 parent bd0f9eb commit c93373060d0053782a9033a0fce2d784e51f95a0 @wagnerrp wagnerrp committed Sep 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/bindings/python/MythTV/
5 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 c933730

Please sign in to comment.