From d6d42af64ad9c124a065006296573d9be817ff80 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 15 Jun 2017 08:54:49 +0900 Subject: 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 --- neutronclient/neutron/v2_0/quota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'neutronclient/neutron') 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): -- cgit v1.2.1