Skip to content

Commit

Permalink
Backport r27203 from trunk.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27204 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
wagnerrp committed Nov 12, 2010
1 parent cf098b7 commit bdae22c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythtv/bindings/python/MythTV/system.py
Expand Up @@ -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):
Expand Down

0 comments on commit bdae22c

Please sign in to comment.