server/sources/datafeed.py
changeset 7533 43835fbdf97d
parent 7527 ef1e9bc38137
child 7534 d58a9d96aad8
equal deleted inserted replaced
7532:76914c7ba1b0 7533:43835fbdf97d
   302     def process(self, url, raise_on_error=False, partialcommit=True):
   302     def process(self, url, raise_on_error=False, partialcommit=True):
   303         """IDataFeedParser main entry point"""
   303         """IDataFeedParser main entry point"""
   304         try:
   304         try:
   305             parsed = self.parse(url)
   305             parsed = self.parse(url)
   306         except Exception, ex:
   306         except Exception, ex:
       
   307             if raise_on_error:
       
   308                 raise
   307             self.source.error(str(ex))
   309             self.source.error(str(ex))
   308             return True
   310             return True
   309         error = False
   311         error = False
   310         for args in parsed:
   312         for args in parsed:
   311             try:
   313             try: