diff --git a/spider.py b/spider.py index e299b40..3f360a5 100644 --- a/spider.py +++ b/spider.py @@ -1029,7 +1029,7 @@ def run(self): writelog(self.logpath, '[Info] "%s" gettwitcastchaturl %s: %s' % (self.name, self.tgt, chaturl)) writelog(self.logpath, '[Success] "%s" gettwitcastchaturl %s' % (self.name, self.tgt)) - except: + except Exception as e: printlog('[Error] "%s" gettwitcastchaturl %s: %s' % (self.name, self.tgt, e)) writelog(self.logpath, '[Error] "%s" gettwitcastchaturl %s: %s' % (self.name, self.tgt, e)) time.sleep(5)