1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-03-04 09:17:51 +00:00

module/vexpress catch CalledProcessError

Depending on what goes wrong, this may also be raised.
This commit is contained in:
Sergei Trofimov 2018-03-02 16:02:34 +00:00 committed by Marc Bonnici
parent f39631293e
commit d5ff73290e

View File

@ -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,