don't crash on invalid cell parameter passed to goto cell

This commit is contained in:
Frédéric Péters 2020-03-05 11:24:33 +01:00
parent 297831169a
commit 9163380584
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ def json_script(value, element_id):
def get_goto_cell(page, request):
try:
cell = ConfigJsonCell.objects.get(id=request.GET['to'])
except (ConfigJsonCell.DoesNotExist, KeyError):
except (ConfigJsonCell.DoesNotExist, ValueError, KeyError):
return None
if cell.page.template_name != 'place':
return cell