Skip to content

Commit

Permalink
Merge pull request #91 from 3c7/fixes/MISP-Analyzer
Browse files Browse the repository at this point in the history
MISP Analyzer: forgot to add same procedure if using just one MISP-Server
  • Loading branch information
jeromeleonard authored Sep 10, 2017
2 parents 7f89661 + f18c3b6 commit bf15a88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analyzers/MISP/mispclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def __init__(self, url, key, ssl=True, name='Unnamed'):
ssl=verify))
else:
verify = True
if os.path.isfile(ssl):
if isinstance(ssl, str):
if os.path.isfile(ssl):
verify = ssl
elif isinstance(ssl, bool):
verify = ssl
self.misp_connections.append(pymisp.PyMISP(url=url,
key=key,
Expand Down

0 comments on commit bf15a88

Please sign in to comment.