mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	Merge branch 'master' into 'master'
do not crash when returned system encoding is None See merge request fdroid/fdroidserver!671
This commit is contained in:
		
						commit
						e8c926ba3b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								fdroid
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								fdroid
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -137,7 +137,7 @@ def main():
 | 
			
		|||
    mod = __import__('fdroidserver.' + command, None, None, [command])
 | 
			
		||||
 | 
			
		||||
    system_langcode, system_encoding = locale.getdefaultlocale()
 | 
			
		||||
    if system_encoding.lower() not in ('utf-8', 'utf8'):
 | 
			
		||||
    if system_encoding is None or system_encoding.lower() not in ('utf-8', 'utf8'):
 | 
			
		||||
        logging.warn(_("Encoding is set to '{enc}' fdroid might run "
 | 
			
		||||
                       "into encoding issues. Please set it to 'UTF-8' "
 | 
			
		||||
                       "for best results.".format(enc=system_encoding)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue