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")
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)
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)
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)