[ARVADOS] created: 2.1.0-969-g0346f4074

Git user git at public.arvados.org
Wed Jun 23 21:02:40 UTC 2021


        at  0346f40740c58d797be6916c246d7c39dc89fc3b (commit)


commit 0346f40740c58d797be6916c246d7c39dc89fc3b
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Wed Jun 23 18:01:14 2021 -0300

    17833: Catches KeepWriteError exceptions to avoid displaying stacktraces.
    
    Replication and storage classes errors now won't show the entire stacktrace.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/sdk/python/arvados/commands/put.py b/sdk/python/arvados/commands/put.py
index 4f0ac1fff..ad0480771 100644
--- a/sdk/python/arvados/commands/put.py
+++ b/sdk/python/arvados/commands/put.py
@@ -1301,7 +1301,7 @@ def main(arguments=None, stdout=sys.stdout, stderr=sys.stderr,
     output = None
     try:
         writer.start(save_collection=not(args.stream or args.raw))
-    except arvados.errors.ApiError as error:
+    except (arvados.errors.ApiError, arvados.errors.KeepWriteError) as error:
         logger.error("\n".join([
             "arv-put: %s" % str(error)]))
         sys.exit(1)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list