mirror of
				https://github.com/pklaus/brother_ql_web.git
				synced 2024-05-25 11:56:53 +03:00 
			
		
		
		
	added explicit encoding to open call
This commit is contained in:
		
							parent
							
								
									0a2cf12c39
								
							
						
					
					
						commit
						3e058cf78e
					
				| @ -22,10 +22,10 @@ logger = logging.getLogger(__name__) | ||||
| LABEL_SIZES = [ (name, label_type_specs[name]['name']) for name in label_sizes] | ||||
| 
 | ||||
| try: | ||||
|     with open('config.json') as fh: | ||||
|     with open('config.json', encoding='utf-8') as fh: | ||||
|         CONFIG = json.load(fh) | ||||
| except FileNotFoundError as e: | ||||
|     with open('config.example.json') as fh: | ||||
|     with open('config.example.json', encoding='utf-8') as fh: | ||||
|         CONFIG = json.load(fh) | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user