diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-03-02 17:38:42 -0800 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-03-02 17:38:42 -0800 |
| commit | 74f2a7537e9e4b8259a4179adc21eef59e59d3c5 (patch) | |
| tree | c3fd36cf065cacd184002ce57436fec6a0308483 /nova | |
| parent | 507a13d8dcdc11ea7638c8904d6d0de22d8e109b (diff) | |
| download | nova-74f2a7537e9e4b8259a4179adc21eef59e59d3c5.tar.gz nova-74f2a7537e9e4b8259a4179adc21eef59e59d3c5.tar.xz nova-74f2a7537e9e4b8259a4179adc21eef59e59d3c5.zip | |
catching bare except:
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/compute/instance_types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/instance_types.py b/nova/compute/instance_types.py index 79c879e8e..fa02a5dfa 100644 --- a/nova/compute/instance_types.py +++ b/nova/compute/instance_types.py @@ -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): |
