Fix the misspelling of "except"

Change-Id: I006a7848d7590dbf297c637bdb5a0867616e7520
This commit is contained in:
lijunjie 2019-01-04 18:01:47 +08:00 committed by David J Peacock
parent 28ce9f3ad4
commit f353fa74c4
1 changed files with 3 additions and 3 deletions

View File

@ -235,11 +235,11 @@ class ResourceExceptionHandlingTest(common.HeatTestCase):
def test_resource_client_exceptions_dont_log_error(self):
class Controller(object):
def __init__(self, excpetion_to_raise):
self.excpetion_to_raise = excpetion_to_raise
def __init__(self, exception_to_raise):
self.exception_to_raise = exception_to_raise
def raise_exception(self, req, body):
raise self.excpetion_to_raise()
raise self.exception_to_raise()
actions = {'action': 'raise_exception', 'body': 'data'}
env = {'wsgiorg.routing_args': [None, actions]}