fix: [stix import] Fixed backward compatibility of an exception

pull/4841/head
chrisr3d 2019-07-05 08:50:57 +02:00
parent 7edf66a1aa
commit 8d0b62c4bf
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ from stix.core import STIXPackage
from collections import defaultdict
try:
import stix_edh
except (ModuleNotFoundError, ImportError):
except ImportError:
pass
_MISP_dir = "/".join([p for p in os.path.dirname(os.path.realpath(__file__)).split('/')[:-3]])