mirror of https://github.com/MISP/PyMISP
Merge branch 'master' of github.com:MISP/PyMISP
commit
1d063462de
|
@ -24,7 +24,7 @@ pip3 install pymisp
|
|||
## Install the latest version from repo
|
||||
|
||||
```
|
||||
git clone https://github.com/CIRCL/PyMISP.git && cd PyMISP
|
||||
git clone https://github.com/MISP/PyMISP.git && cd PyMISP
|
||||
pip3 install -I .
|
||||
```
|
||||
|
||||
|
@ -84,7 +84,7 @@ logging.basicConfig(level=logging.DEBUG, filename="debug.log", filemode='w', for
|
|||
Documentation can be generated with epydoc:
|
||||
|
||||
```
|
||||
epydoc --url https://github.com/CIRCL/PyMISP --graph all --name PyMISP --pdf pymisp -o doc
|
||||
epydoc --url https://github.com/MISP/PyMISP --graph all --name PyMISP --pdf pymisp -o doc
|
||||
```
|
||||
|
||||
## Everything is a Mutable Mapping
|
||||
|
|
|
@ -403,7 +403,7 @@ class PyMISP(object):
|
|||
:param alert: set to True by default (send alerting email) if False will not send alert
|
||||
:return publish status
|
||||
"""
|
||||
if isinstance(event, int) or (isinstance(event, basestring) and event.is_digit()):
|
||||
if isinstance(event, int) or (isinstance(event, basestring) and event.isdigit()):
|
||||
full_event = self._make_mispevent(self.get_event(event))
|
||||
else:
|
||||
full_event = self._make_mispevent(event)
|
||||
|
|
Loading…
Reference in New Issue