[ARVADOS] updated: 4df91a01ad793744d7370b1ad5837543ed76c242

git at public.curoverse.com git at public.curoverse.com
Wed Oct 21 15:38:16 EDT 2015


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

       via  4df91a01ad793744d7370b1ad5837543ed76c242 (commit)
      from  f0ea4324260fb4dc6df693d9548285bb64b3b69f (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 4df91a01ad793744d7370b1ad5837543ed76c242
Author: Brett Smith <brett at curoverse.com>
Date:   Wed Oct 21 15:37:53 2015 -0400

    Fix multiple exception catching in arv-run.
    
    The previous version catches IOError and binds the exception object to
    the name OSError.  No issue #.

diff --git a/sdk/python/arvados/commands/run.py b/sdk/python/arvados/commands/run.py
index be94e73..8df945a 100644
--- a/sdk/python/arvados/commands/run.py
+++ b/sdk/python/arvados/commands/run.py
@@ -52,7 +52,7 @@ def is_in_collection(root, branch):
         else:
             sp = os.path.split(root)
             return is_in_collection(sp[0], os.path.join(sp[1], branch))
-    except IOError, OSError:
+    except (IOError, OSError):
         return (None, None)
 
 # Determine the project to place the output of this command by searching upward
@@ -73,7 +73,7 @@ def determine_project(root, current_user):
         else:
             sp = os.path.split(root)
             return determine_project(sp[0], current_user)
-    except IOError, OSError:
+    except (IOError, OSError):
         return current_user
 
 # Determine if string corresponds to a file, and if that file is part of a

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list