chg: Code cleanup

pull/434/head
Raphaël Vinot 2019-08-06 14:23:32 +02:00
parent e993886dd7
commit 5286462361
1 changed files with 1 additions and 4 deletions

View File

@ -46,13 +46,11 @@ try:
from dateutil.parser import parse
except ImportError:
logger.exception("Cannot import dateutil")
pass
try:
import jsonschema
except ImportError:
logger.exception("Cannot import jsonschema")
pass
try:
# pyme renamed to gpg the 2016-10-28
@ -680,7 +678,6 @@ class MISPEvent(AbstractMISP):
self.edited = True
if attr_list:
return attr_list
else:
return attribute
def get_object_by_id(self, object_id):