[arvados] updated: 2.6.0-574-ge2ff62325b

git repository hosting git at public.arvados.org
Mon Sep 11 19:56:41 UTC 2023


Summary of changes:
 sdk/python/arvados/commands/arv_copy.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

       via  e2ff62325b64e1d2026bdd5f5b9e7a3f1064ba1e (commit)
      from  29fd26f3cb79df8cf4f7f6e1688af0205687dcc8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e2ff62325b64e1d2026bdd5f5b9e7a3f1064ba1e
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Mon Sep 11 15:56:18 2023 -0400

    20937: Handle None result
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/sdk/python/arvados/commands/arv_copy.py b/sdk/python/arvados/commands/arv_copy.py
index 901245c950..76b08a38cb 100755
--- a/sdk/python/arvados/commands/arv_copy.py
+++ b/sdk/python/arvados/commands/arv_copy.py
@@ -169,8 +169,9 @@ def main():
 
     # If no exception was thrown and the response does not have an
     # error_token field, presume success
-    if 'error_token' in result or 'uuid' not in result:
-        logger.error("API server returned an error result: {}".format(result))
+    if result in None or 'error_token' in result or 'uuid' not in result:
+        if result:
+            logger.error("API server returned an error result: {}".format(result))
         exit(1)
 
     print(result['uuid'])

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list