|  | @@ -619,18 +619,34 @@ def monitor():
 | 
	
		
			
				|  |  |          title = article[2]
 | 
	
		
			
				|  |  |          url = article[3]
 | 
	
		
			
				|  |  |          wx_sn = article[4]
 | 
	
		
			
				|  |  | -        response = spider.get_article_text(url)
 | 
	
		
			
				|  |  | -        response_code = response['code']
 | 
	
		
			
				|  |  | -        if response_code == const.ARTICLE_ILLEGAL_CODE:
 | 
	
		
			
				|  |  | -            bot(
 | 
	
		
			
				|  |  | -                title="文章违规告警",
 | 
	
		
			
				|  |  | -                detail={
 | 
	
		
			
				|  |  | +        try:
 | 
	
		
			
				|  |  | +            response = spider.get_article_text(url)
 | 
	
		
			
				|  |  | +            response_code = response['code']
 | 
	
		
			
				|  |  | +            if response_code == const.ARTICLE_ILLEGAL_CODE:
 | 
	
		
			
				|  |  | +                bot(
 | 
	
		
			
				|  |  | +                    title="文章违规告警",
 | 
	
		
			
				|  |  | +                    detail={
 | 
	
		
			
				|  |  | +                        "ghId": gh_id,
 | 
	
		
			
				|  |  | +                        "accountName": account_name,
 | 
	
		
			
				|  |  | +                        "title": title,
 | 
	
		
			
				|  |  | +                        "wx_sn": wx_sn
 | 
	
		
			
				|  |  | +                    },
 | 
	
		
			
				|  |  | +                    mention=False
 | 
	
		
			
				|  |  | +                )
 | 
	
		
			
				|  |  | +        except Exception as e:
 | 
	
		
			
				|  |  | +            error_msg = traceback.format_exc()
 | 
	
		
			
				|  |  | +            log(
 | 
	
		
			
				|  |  | +                task="monitor",
 | 
	
		
			
				|  |  | +                function="monitor",
 | 
	
		
			
				|  |  | +                message="请求文章详情失败",
 | 
	
		
			
				|  |  | +                data={
 | 
	
		
			
				|  |  |                      "ghId": gh_id,
 | 
	
		
			
				|  |  |                      "accountName": account_name,
 | 
	
		
			
				|  |  |                      "title": title,
 | 
	
		
			
				|  |  | -                    "wx_sn": wx_sn
 | 
	
		
			
				|  |  | -                },
 | 
	
		
			
				|  |  | -                mention=False
 | 
	
		
			
				|  |  | +                    "wx_sn": wx_sn,
 | 
	
		
			
				|  |  | +                    "error": e,
 | 
	
		
			
				|  |  | +                    "msg": error_msg
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              )
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |