NoSuchTypeError -> InvalidTypeError
This commit is contained in:
parent
5e087fd280
commit
e6c5563a16
6 changed files with 15 additions and 8 deletions
|
|
@ -247,7 +247,7 @@ class Emulator(object):
|
|||
# Raises an error, if object cannot be created
|
||||
try:
|
||||
cdist_object = self.cdist_object.object_from_name(requirement)
|
||||
except core.cdist_type.NoSuchTypeError as e:
|
||||
except core.cdist_type.InvalidTypeError as e:
|
||||
self.log.error(("%s requires object %s, but type %s does not"
|
||||
" exist. Defined at %s" % (
|
||||
self.cdist_object.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue