mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-03 21:02:36 +00:00 
			
		
		
		
	Fix Unicode error on confetty pipe out
When unicode was encountered, it would through an *encode* error. Fix that issue.
This commit is contained in:
		@@ -271,7 +271,7 @@ def print_result(res):
 | 
			
		||||
            output = attrstr
 | 
			
		||||
        try:
 | 
			
		||||
            print(output)
 | 
			
		||||
        except UnicodeDecodeError:
 | 
			
		||||
        except (UnicodeDecodeError, UnicodeEncodeError):
 | 
			
		||||
            print(output.encode('utf-8'))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user