From 59ed70a46ccadcc899c88de9736a3624d59806dd Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 20 Dec 2018 10:43:49 +0800 Subject: [PATCH] for test --- parser_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser_test.go b/parser_test.go index 7ab3aeb..9252bad 100644 --- a/parser_test.go +++ b/parser_test.go @@ -32,8 +32,8 @@ func (tt *Toutiao) GetSpiderID() int { func (tt *Toutiao) ToDoParser(adstring string) (presult string, err error) { defer func() { - if err = recover().(error); err != nil { - log.Println(err) + if ierr := recover(); ierr != nil { + log.Println(ierr) } }()