Bugfix: Invalid depth query parameter exception catched

parent db3190b0
......@@ -123,7 +123,7 @@ def _get(ds: BaseDatastore, pth: str, username: str, yl_data: bool=False, stagin
except (NonexistentSchemaNode, NonexistentInstance) as e:
warn(epretty(e))
http_resp = HttpResponse.empty(HttpStatus.NotFound)
except InstanceValueError as e:
except (InstanceValueError, ValueError) as e:
warn(epretty(e))
http_resp = HttpResponse.empty(HttpStatus.BadRequest)
except (ConfHandlerFailedError, NoHandlerError, KnotError, YangsonException) as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment