Robustness

pull/106/head
Andrea 2017-03-14 15:48:25 +01:00
parent 27cb5c9511
commit 37a3ad3532
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class BveView(models.Model):
return fields
def check_empty_data(data):
if not data:
if not data or data == '[]':
raise UserError(_('No data to process.'))
check_empty_data(self.data)