Change RESTError to JsonRESTError for ImageNotFoundException, update test to expect ImageNotFoundException
This commit is contained in:
parent
a92f862e86
commit
28af7412f8
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
from moto.core.exceptions import RESTError
|
||||
from moto.core.exceptions import RESTError, JsonRESTError
|
||||
|
||||
|
||||
class RepositoryNotFoundException(RESTError):
|
||||
|
|
@ -13,7 +13,7 @@ class RepositoryNotFoundException(RESTError):
|
|||
)
|
||||
|
||||
|
||||
class ImageNotFoundException(RESTError):
|
||||
class ImageNotFoundException(JsonRESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self, image_id, repository_name, registry_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue