From ef69016e4a80874c7765054442522147e10e8314 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Tue, 21 Feb 2017 11:07:57 +0100 Subject: [PATCH] Allow 'Your organisation only' distribution for attributes --- pymisp/mispevent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/mispevent.py b/pymisp/mispevent.py index 6d5a472..3b9a510 100644 --- a/pymisp/mispevent.py +++ b/pymisp/mispevent.py @@ -151,7 +151,7 @@ class MISPAttribute(object): self.to_ids = bool(int(type_defaults['to_ids'])) if kwargs.get('comment'): self.comment = kwargs['comment'] - if kwargs.get('distribution'): + if kwargs.get('distribution') is not None: self.distribution = int(kwargs['distribution']) if self.distribution not in [0, 1, 2, 3, 4, 5]: raise NewAttributeError('{} is invalid, the distribution has to be in 0, 1, 2, 3, 4, 5'.format(self.distribution))