libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [4/9] libcloud git commit: fix badly raised exceptions
Date Mon, 10 Jul 2017 08:48:23 GMT
fix badly raised exceptions


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/bd887c80
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/bd887c80
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/bd887c80

Branch: refs/heads/trunk
Commit: bd887c8077282c10d5467e9494c770f4f5a0fe41
Parents: cfe02ec
Author: jhelie <jean.helie@gmail.com>
Authored: Thu Jun 22 13:25:42 2017 +0100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Jul 10 09:48:02 2017 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/bd887c80/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 5766530..420914b 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -6950,7 +6950,7 @@ class GCENodeDriver(NodeDriver):
         if not region_name:
             region = self._set_region(region)
             if not region:
-                raise ("Could not determine region for subnetwork.")
+                raise ValueError("Could not determine region for subnetwork.")
             else:
                 region_name = region.name
 
@@ -6988,7 +6988,7 @@ class GCENodeDriver(NodeDriver):
         if not region_name:
             region = self._set_region(region)
             if not region:
-                raise ("Could not determine region for subnetwork.")
+                raise ValueError("Could not determine region for subnetwork.")
             else:
                 region_name = region.name
 


Mime
View raw message