コード例 #1
0
 def run(self):
     try :
         filename = spider.queueSpider(self.add_link_dictionary)
         self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
     except:
         print("Spider couldn't find download information")
         logger.sendToLog(
             "Spider couldn't find download information", "ERROR")
コード例 #2
0
ファイル: text_queue.py プロジェクト: zxh1986123/persepolis
 def run(self):
     try:
         filename = spider.queueSpider(self.add_link_dictionary)
         self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
     except Exception as e:
         print(e)
         print("Spider couldn't find download information")
         logger.logObj.error("Spider couldn't find download information",
                             exc_info=True)
コード例 #3
0
ファイル: text_queue.py プロジェクト: zzl81cn/persepolis
    def run(self):
        try:
            filename = spider.queueSpider(self.dict)
            if filename:
                self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
            else:
                logger.logObj.error(
                    "Spider couldn't find download information", exc_info=True)

        except Exception as e:
            # write error in log
            logger.logObj.error("Spider couldn't find download information",
                                exc_info=True)
            logger.logObj.error(str(e), exc_info=True)
コード例 #4
0
ファイル: text_queue.py プロジェクト: kazemihabib/persepolis
    def run(self):
        try:
            filename = spider.queueSpider(self.dict)
            if filename:
                self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
            else:
                logger.logObj.error(
                    "Spider couldn't find download information", exc_info=True)

        except Exception as e:
            # write error in log
            logger.logObj.error(
                "Spider couldn't find download information", exc_info=True)
            logger.logObj.error(
                str(e), exc_info=True)