Merge pull request #976 from fenglui/master
fix msg.data.split(DELIMITER) exception when msg.data is int
This commit is contained in:
		
						commit
						dd7a01cda5
					
				@ -519,7 +519,11 @@ class _ChatHub:
 | 
			
		||||
        resp_txt_no_link = ""
 | 
			
		||||
        while not final:
 | 
			
		||||
            msg = await self.wss.receive()
 | 
			
		||||
            objects = msg.data.split(DELIMITER)
 | 
			
		||||
            try:
 | 
			
		||||
                objects = msg.data.split(DELIMITER)
 | 
			
		||||
            except :
 | 
			
		||||
                continue
 | 
			
		||||
            
 | 
			
		||||
            for obj in objects:
 | 
			
		||||
                if obj is None or not obj:
 | 
			
		||||
                    continue
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user