Better handeling of keyboard interupts.
This commit is contained in:
		
							parent
							
								
									a82f74ee68
								
							
						
					
					
						commit
						fc8a5b9735
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -153,6 +153,8 @@ def runCmd(*args: str) -> bool: | |||
|         proc = subprocess.run(args) | ||||
|     except FileNotFoundError: | ||||
|         raise CliException(f"Failed to run {args[0]}: command not found") | ||||
|     except KeyboardInterrupt: | ||||
|         raise CliException("Interrupted") | ||||
| 
 | ||||
|     if proc.returncode == -signal.SIGSEGV: | ||||
|         raise CliException("Segmentation fault") | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue