Skip to content

Commit

Permalink
Merge pull request #4 from supervisely-ecosystem/workflow-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu authored Jul 23, 2024
2 parents 4ddad77 + 5aa541c commit bc9be53
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"categories": ["system", "import"],
"system": true,
"description": "Universal import tool for Images, Videos, Pointclouds, and Volumes",
"docker_image": "supervisely/import-export:6.73.131",
"docker_image": "supervisely/import-export:6.73.138",
"min_instance_version": "6.10.0",
"main_script": "src/main.py",
"task_location": "workspace_tasks",
Expand Down
2 changes: 1 addition & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
supervisely==6.73.131
supervisely==6.73.138
# git+https://github.com/supervisely/supervisely.git@import-wizard-updates-7

# for coco dataset
Expand Down
9 changes: 8 additions & 1 deletion src/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
def check_compatibility(func):
def wrapper(self, *args, **kwargs):
if self.is_compatible is None:
self.is_compatible = self.check_instance_ver_compatibility()
try:
self.is_compatible = self.check_instance_ver_compatibility()
except Exception as e:
sly.logger.error(
"Can not check compatibility with Supervisely instance. "
f"Workflow features will be disabled. Error: {repr(e)}"
)
self.is_compatible = False
if not self.is_compatible:
return
return func(self, *args, **kwargs)
Expand Down

0 comments on commit bc9be53

Please sign in to comment.