changing this would break the api  we should catch the  httpbadrequest  in the  shell py  call and raise the right exception from there  also  tbh  i do not really mind the error to be there  this code  as much as i hate it  is short circuiting a check that should happen server side to begin with 