Fix multiple exception catching in arv-run.
authorBrett Smith <brett@curoverse.com>
Wed, 21 Oct 2015 19:37:53 +0000 (15:37 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 21 Oct 2015 19:37:53 +0000 (15:37 -0400)
The previous version catches IOError and binds the exception object to
the name OSError.  No issue #.

sdk/python/arvados/commands/run.py

index be94e7304a34f3a2cdc829cd9a9f4b8339aaaf33..8df945a063f3c76999c882b8f27dc20649c07d8c 100644 (file)
@@ -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