diff --git a/pymisp/api.py b/pymisp/api.py index b1bad95..409aa35 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -159,6 +159,8 @@ class PyMISP(object): messages.append('Error in {}: {}'.format(where, msg)) else: for e in errors: + if not e: + continue if isinstance(e, str): messages.append(e) continue