From bf3e31d743bfacc74e1a480a697f85146292eaa2 Mon Sep 17 00:00:00 2001 From: Kirill Sizov Date: Tue, 18 Jul 2023 11:19:49 +0300 Subject: [PATCH] Add error message (#6500) ### Motivation and context When users try to backup a task with cloud storage data they get such error: ![Screenshot from 2023-07-18 09-21-18](https://github.com/opencv/cvat/assets/43179655/a6e4ed09-8fb5-4ebb-a5e3-72b95d9aa195) And after that, they have no idea what's wrong with this task and why they cannot backup it. ### How has this been tested? ### Checklist - [ ] I submit my changes into the `develop` branch - [ ] I have added a description of my changes into the [CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md) file - [ ] I have updated the documentation accordingly - [ ] I have added tests to cover my changes - [ ] I have linked related issues (see [GitHub docs]( https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) - [ ] I have increased versions of npm packages if it is necessary ([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning), [cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning), [cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning) and [cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning)) ### License - [ ] I submit _my code changes_ under the same [MIT License]( https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern. --- cvat/apps/engine/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat/apps/engine/backup.py b/cvat/apps/engine/backup.py index ee994bc81907..799b217c2d95 100644 --- a/cvat/apps/engine/backup.py +++ b/cvat/apps/engine/backup.py @@ -364,7 +364,7 @@ def _write_data(self, zip_object, target_dir=None): target_dir=target_data_dir, ) else: - raise NotImplementedError() + raise NotImplementedError("We don't currently support backing up tasks with data from cloud storage") def _write_task(self, zip_object, target_dir=None): task_dir = self._db_task.get_dirname()