diff --git a/kallithea/controllers/changeset.py b/kallithea/controllers/changeset.py --- a/kallithea/controllers/changeset.py +++ b/kallithea/controllers/changeset.py @@ -75,7 +75,10 @@ def get_ignore_ws(fid, GET): ig_ws_global = GET.get('ignorews') ig_ws = filter(lambda k: k.startswith('WS'), GET.getall(fid)) if ig_ws: - return int(ig_ws[0].split(':')[-1]) + try: + return int(ig_ws[0].split(':')[-1]) + except ValueError: + raise HTTPBadRequest() return ig_ws_global