summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Wagner <rwagner@mythtv.org>2010-11-12 19:10:59 (GMT)
committer Raymond Wagner <rwagner@mythtv.org>2010-11-12 19:10:59 (GMT)
commitbdae22cdbd01404d91cc433b876b32972db49583 (patch)
tree76208a1aa77d263d3587811da326c796c9677a9a
parentcf098b728225574502b1d093c5a05922fd7ba2d3 (diff)
Backport r27203 from trunk.
git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27204 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/bindings/python/MythTV/system.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mythtv/bindings/python/MythTV/system.py b/mythtv/bindings/python/MythTV/system.py
index 420a6c9..da2eff5 100644
--- a/mythtv/bindings/python/MythTV/system.py
+++ b/mythtv/bindings/python/MythTV/system.py
@@ -195,7 +195,12 @@ class InternetMetadata( Metadata ):
class Grabber( System ):
def _processMetadata(self, xml):
- for item in etree.fromstring(xml).getiterator('item'):
+ try:
+ xml = etree.fromstring(xml)
+ except:
+ raise StopIteration
+
+ for item in xml.getiterator('item'):
yield self.cls(item)
def command(self, *args):