handle another possible exception when checking query string

This commit is contained in:
Frédéric Péters 2014-01-22 16:00:00 +01:00
parent 3eadd54299
commit 1426882945
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class ResultsTable(BaseTable):
try:
if self.request.form.get('query', {})[0].get('i') == 'object_folders':
self.folder_id = int(self.request.form.get('query', {})[0].get('v')[0])
except (IndexError, ValueError):
except (IndexError, ValueError, KeyError):
pass
if self.folder_id:
columns = [x for x in columns if x.__name__ != 'dms.delete']