mirror of
				https://github.com/docker/compose.git
				synced 2025-10-31 11:14:02 +01:00 
			
		
		
		
	Catch WindowsError in call_silently
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
		
							parent
							
								
									4ae7f00412
								
							
						
					
					
						commit
						fb30498153
					
				| @ -85,7 +85,12 @@ def call_silently(*args, **kwargs): | ||||
|     Like subprocess.call(), but redirects stdout and stderr to /dev/null. | ||||
|     """ | ||||
|     with open(os.devnull, 'w') as shutup: | ||||
|         try: | ||||
|             return subprocess.call(*args, stdout=shutup, stderr=shutup, **kwargs) | ||||
|         except WindowsError: | ||||
|             # On Windows, subprocess.call() can still raise exceptions. Normalize | ||||
|             # to POSIXy behaviour by returning a nonzero exit code. | ||||
|             return 1 | ||||
| 
 | ||||
| 
 | ||||
| def is_mac(): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user