mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Catch tuf.exceptions.Error in client.py to prevent printing exception trace
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
This commit is contained in:
parent
a300122978
commit
e42874db46
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ def parse_arguments():
|
|||
update_client(arguments)
|
||||
|
||||
except (tuf.exceptions.NoWorkingMirrorError, tuf.exceptions.RepositoryError,
|
||||
tuf.exceptions.FormatError) as e:
|
||||
tuf.exceptions.FormatError, tuf.exceptions.Error) as e:
|
||||
sys.stderr.write('Error: ' + str(e) + '\n')
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue