From 4b4e063784546888b3eadbfe6d11ddf744b3fd13 Mon Sep 17 00:00:00 2001 From: Ronan Dunklau Date: Thu, 16 Aug 2012 13:07:06 +0200 Subject: [PATCH] Turn the print statement into a NOTICE message --- python/multicorn/rssfdw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/multicorn/rssfdw.py b/python/multicorn/rssfdw.py index a4147d098..4ad5fe999 100644 --- a/python/multicorn/rssfdw.py +++ b/python/multicorn/rssfdw.py @@ -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): @@ -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