未验证 提交 b6c37ec4 编写于 作者: D DmitriyOparin 提交者: GitHub

Fixed of receiving 'function' variable (#2860)

* fixed of receiving function variable

* change CHANGELOG.md
Co-authored-by: NDmitriy Oparin <dmitriyx.oparin@intel.com>
上级 88f494a0
......@@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
### Fixed
- More robust execution of nuclio GPU functions by limiting the GPU memory consumption per worker (<https://github.com/openvinotoolkit/cvat/pull/2714>)
- Kibana startup initialization (<https://github.com/openvinotoolkit/cvat/pull/2659>)
- The cursor jumps to the end of the line when renaming a task (<https://github.com/openvinotoolkit/cvat/pull/2669>)
......@@ -52,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed cuboid perpective change (<https://github.com/openvinotoolkit/cvat/pull/2733>)
- Annotation page popups (ai tools, drawing) reset state after detecting, tracking, drawing (<https://github.com/openvinotoolkit/cvat/pull/2780>)
- Polygon editing using trailing point (<https://github.com/openvinotoolkit/cvat/pull/2808>)
- Fixed of receiving function variable (<https://github.com/openvinotoolkit/cvat/pull/2860>)
### Security
......
......@@ -605,7 +605,7 @@ class RequestViewSet(viewsets.ViewSet):
self.check_object_permissions(self.request, db_task)
except (KeyError, ObjectDoesNotExist) as err:
raise ValidationError(
'`{}` lambda function was run '.format(function) +
'`{}` lambda function was run '.format(request.data.get('function', 'undefined')) +
'with wrong arguments ({})'.format(str(err)),
code=status.HTTP_400_BAD_REQUEST)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册