mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	generate_secrets: Fix handling of an empty secrets file.
This is now a condition that happens during installation, because we now create an empty file for this in puppet.
This commit is contained in:
		@@ -53,7 +53,7 @@ def generate_django_secretkey():
 | 
			
		||||
 | 
			
		||||
def get_old_conf(output_filename):
 | 
			
		||||
    # type: (str) -> Dict[str, Text]
 | 
			
		||||
    if not os.path.exists(output_filename):
 | 
			
		||||
    if not os.path.exists(output_filename) or os.path.getsize(output_filename) == 0:
 | 
			
		||||
        return {}
 | 
			
		||||
 | 
			
		||||
    secrets_file = configparser.RawConfigParser()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user