Skip to content

Commit

Permalink
Turn the print statement into a NOTICE message
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan Dunklau committed Aug 16, 2012
1 parent 54b0637 commit 4b4e063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/multicorn/rssfdw.py
Expand Up @@ -30,7 +30,7 @@ def __init__(self, options, columns):
self.cache_duration = timedelta(seconds=int(self.cache_duration))
if self.url is None:
log_to_postgres("You MUST set an url when creating the table!",
ERROR)
ERROR)
self.columns = columns

def make_item_from_xml(self, xml_elem, namespaces):
Expand All @@ -55,9 +55,9 @@ def execute(self, quals, columns):
try:
xml = etree.fromstring(urllib.urlopen(self.url).read())
items = [self.make_item_from_xml(elem, xml.nsmap)
for elem in xml.xpath('//item')]
for elem in xml.xpath('//item')]
self.cache[(quals, columns)] = (datetime.now(), items)
return items
except etree.ParseError:
print("Malformed xml, returning nothing")
log_to_postgres("Malformed xml, returning nothing")
return

0 comments on commit 4b4e063

Please sign in to comment.