Not, not Non for the exception.
This commit is contained in:
parent
dd85f35f5a
commit
9e73d10e59
3 changed files with 7 additions and 7 deletions
|
|
@ -7,7 +7,7 @@ import requests
|
|||
from moto.core import BaseBackend
|
||||
from moto.core.utils import iso_8601_datetime_with_milliseconds
|
||||
from .utils import create_id
|
||||
from .exceptions import StageNonFoundException
|
||||
from .exceptions import StageNotFoundException
|
||||
|
||||
STAGE_URL = "https://{api_id}.execute-api.{region_name}.amazonaws.com/{stage_name}"
|
||||
|
||||
|
|
@ -427,7 +427,7 @@ class APIGatewayBackend(BaseBackend):
|
|||
api = self.get_rest_api(function_id)
|
||||
stage = api.stages.get(stage_name)
|
||||
if stage is None:
|
||||
raise StageNonFoundException()
|
||||
raise StageNotFoundException()
|
||||
else:
|
||||
return stage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue