From e42874db46b85787def76feed82c12cd0ca09407 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Thu, 28 Jun 2018 12:38:55 -0400 Subject: [PATCH] Catch tuf.exceptions.Error in client.py to prevent printing exception trace Signed-off-by: Vladimir Diaz --- tuf/scripts/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuf/scripts/client.py b/tuf/scripts/client.py index 72e9fb37..23f1707a 100755 --- a/tuf/scripts/client.py +++ b/tuf/scripts/client.py @@ -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)