Skip to content

Commit 2ab901b

Browse files
committed
chg: Expose MISPObjectException
1 parent f978744 commit 2ab901b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pymisp/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def warning_2024() -> None:
3232
try:
3333
warning_2024()
3434
from .exceptions import (PyMISPError, NewEventError, NewAttributeError, MissingDependency, NoURL, NoKey, # noqa
35-
InvalidMISPObject, UnknownMISPObjectTemplate, PyMISPInvalidFormat, MISPServerError, PyMISPNotImplementedYet, PyMISPUnexpectedResponse, PyMISPEmptyResponse)
35+
InvalidMISPObject, UnknownMISPObjectTemplate, PyMISPInvalidFormat, MISPServerError,
36+
PyMISPNotImplementedYet, PyMISPUnexpectedResponse, PyMISPEmptyResponse,
37+
MISPObjectException)
3638
from .abstract import AbstractMISP, MISPEncode, pymisp_json_default, MISPTag, Distribution, ThreatLevel, Analysis # noqa
3739
from .mispevent import (MISPEvent, MISPAttribute, MISPObjectReference, MISPObjectAttribute, MISPObject, MISPUser, # noqa
3840
MISPOrganisation, MISPSighting, MISPLog, MISPShadowAttribute, MISPWarninglist, MISPTaxonomy,
@@ -79,5 +81,5 @@ def __init__(self, *args, **kwargs):
7981
'MISPGalaxyClusterRelation', 'MISPNote', 'MISPOpinion', 'MISPRelationship',
8082
'PyMISPError', 'NewEventError', 'NewAttributeError', 'MISPServerError',
8183
'NoURL', 'NoKey', 'InvalidMISPObject', 'UnknownMISPObjectTemplate', 'PyMISPInvalidFormat',
82-
'Distribution', 'ThreatLevel', 'Analysis', 'ExpandedPyMISP'
84+
'Distribution', 'ThreatLevel', 'Analysis', 'ExpandedPyMISP', 'MISPObjectException'
8385
]

0 commit comments

Comments
 (0)