fix flatten

pull/34/head
Déborah Servili 2016-10-11 11:26:57 +02:00
parent 268598fe23
commit 3df35826c5
1 changed files with 2 additions and 0 deletions

View File

@ -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