Fix the misspelling of "except"
Change-Id: I006a7848d7590dbf297c637bdb5a0867616e7520
This commit is contained in:
parent
28ce9f3ad4
commit
f353fa74c4
|
@ -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]}
|
||||
|
|
Loading…
Reference in New Issue