Skip to content

Commit

Permalink
Fix handling of responses to queries from metadata grabbers when prov…
Browse files Browse the repository at this point in the history
…ided with no output, rather than the expected of output with no results.

git-svn-id: http://svn.mythtv.org/svn/trunk@27203 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
wagnerrp committed Nov 12, 2010
1 parent f2aa4c3 commit 21af898
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythtv/bindings/python/MythTV/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,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 21af898

Please sign in to comment.