mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Fixed PLR5501 (collapsible-else-if): Use elif instead of else then if, to reduce indentation
				
					
				
			This commit is contained in:
		
							parent
							
								
									1d79f9bb2b
								
							
						
					
					
						commit
						a32354fd91
					
				@ -154,9 +154,8 @@ def check_service(i, service, env):
 | 
				
			|||||||
		if not running and service["port"] in {80, 443}:
 | 
							if not running and service["port"] in {80, 443}:
 | 
				
			||||||
			output.print_line(shell('check_output', ['nginx', '-t'], capture_stderr=True, trap=True)[1].strip())
 | 
								output.print_line(shell('check_output', ['nginx', '-t'], capture_stderr=True, trap=True)[1].strip())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	else:
 | 
					 | 
				
			||||||
	# Service should be running locally.
 | 
						# Service should be running locally.
 | 
				
			||||||
		if try_connect("127.0.0.1"):
 | 
						elif try_connect("127.0.0.1"):
 | 
				
			||||||
		running = True
 | 
							running = True
 | 
				
			||||||
	else:
 | 
						else:
 | 
				
			||||||
		output.print_error("%s is not running (port %d)." % (service['name'], service['port']))
 | 
							output.print_error("%s is not running (port %d)." % (service['name'], service['port']))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user