catching bare except:

This commit is contained in:
Ken Pepple
2011-03-02 17:38:42 -08:00
parent 507a13d8dc
commit 74f2a7537e

View File

@@ -40,7 +40,7 @@ def create(name, memory, vcpus, local_gb, flavorid, swap=0,
for option in [memory, vcpus, local_gb, flavorid]:
try:
int(option)
except:
except ValueError:
raise exception.InvalidInputException(
_("create arguments must be positive integers"))
if (int(memory) <= 0) or (int(vcpus) <= 0) or (int(local_gb) < 0):