Permalink
Browse files

Backport r27203 from trunk.

git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27204 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent cf098b7 commit bdae22cdbd01404d91cc433b876b32972db49583 @wagnerrp wagnerrp committed Nov 12, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 mythtv/bindings/python/MythTV/system.py
@@ -195,7 +195,12 @@ def _process(self, xml):
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):

0 comments on commit bdae22c

Please sign in to comment.