summaryrefslogtreecommitdiff
path: root/neutronclient/neutron
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2017-06-15 08:54:49 +0900
committerAkihiro Motoki <amotoki@gmail.com>2017-06-15 09:06:32 +0900
commitd6d42af64ad9c124a065006296573d9be817ff80 (patch)
tree239b353de597cf870c3e0d04a2b67eb90a6a13e8 /neutronclient/neutron
parent41961a25fdc9e110ec51d8e78c6feb2736bebd6f (diff)
downloadpython-neutronclient-d6d42af64ad9c124a065006296573d9be817ff80.tar.gz
CLI implementation should raise CommandError
NeutronClientException is an exception raised from API bindings and it should not be used in CLI layer. TrivialFix Change-Id: I3df4c7352c96f10388df65bd16016b3ceb221248
Diffstat (limited to 'neutronclient/neutron')
-rw-r--r--neutronclient/neutron/v2_0/quota.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neutronclient/neutron/v2_0/quota.py b/neutronclient/neutron/v2_0/quota.py
index a1144c3..6e7058d 100644
--- a/neutronclient/neutron/v2_0/quota.py
+++ b/neutronclient/neutron/v2_0/quota.py
@@ -207,7 +207,7 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
except Exception:
message = (_('Quota limit for %(name)s must be an integer') %
{'name': name})
- raise exceptions.NeutronClientException(message=message)
+ raise exceptions.CommandError(message=message)
return return_value
def args2body(self, parsed_args):