Merge pull request #112 from CenturyLinkCIRT/unknown-object-name-patch

Formatted "Unknown MISP object" error message
pull/115/head
Raphaël Vinot 2017-09-22 21:21:01 +01:00 committed by GitHub
commit 026cc3328d
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ class MISPObject(AbstractMISP):
self.__known_template = True
else:
if self.__strict:
raise UnknownMISPObjectTemplate('{} is unknown in the MISP object directory.')
raise UnknownMISPObjectTemplate('{} is unknown in the MISP object directory.'.format(self.name))
else:
self.__known_template = False
if self.__known_template: