Accept None as valid arg for Grid.set_filter()

i.e. to effectively remove the filter
This commit is contained in:
Lance Edgar 2017-11-11 09:52:11 -06:00
parent 152db68606
commit 2cba0ade84
2 changed files with 6 additions and 3 deletions

View file

@ -539,12 +539,12 @@ class BatchMasterView(MasterView):
self.handler.refresh_batch_status(batch)
except Exception as error:
session.rollback()
log.warning("batch pre-fill failed: {}".format(batch), exc_info=True)
log.warning("batch population failed: %s", batch, exc_info=True)
session.close()
if progress:
progress.session.load()
progress.session['error'] = True
progress.session['error_msg'] = "Batch pre-fill failed: {} {}".format(error.__class__.__name__, error)
progress.session['error_msg'] = "Batch population failed: {} - {}".format(error.__class__.__name__, error)
progress.session.save()
return