mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-10-31 14:01:20 +00:00 
			
		
		
		
	module/vexpress catch CalledProcessError
Depending on what goes wrong, this may also be raised.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							f39631293e
						
					
				
				
					commit
					d5ff73290e
				
			| @@ -17,6 +17,7 @@ import os | ||||
| import time | ||||
| import tarfile | ||||
| import shutil | ||||
| from subprocess import CalledProcessError | ||||
|  | ||||
| from devlib.module import HardRestModule, BootModule, FlashModule | ||||
| from devlib.exception import TargetError, HostError | ||||
| @@ -52,7 +53,7 @@ class VexpressDtrHardReset(HardRestModule): | ||||
|         try: | ||||
|             if self.target.is_connected: | ||||
|                 self.target.execute('sync') | ||||
|         except TargetError: | ||||
|         except (TargetError, CalledProcessError): | ||||
|             pass | ||||
|         with open_serial_connection(port=self.port, | ||||
|                                     baudrate=self.baudrate, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user