diff --git a/config.json b/config.json index 64ef67e..8134982 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "type": "app", "categories": ["system"], "description": "Adds project from ecosystem, works with all project types: images / videos / 3d / dicom", - "docker_image": "supervisely/system:6.73.123", + "docker_image": "supervisely/system:6.73.138", "main_script": "src/add_project.py", "modal_template": "src/modal.html", "modal_template_state": { diff --git a/dev_requirements.txt b/dev_requirements.txt index cba81b9..f3cdc92 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -1 +1 @@ -supervisely==6.73.123 \ No newline at end of file +supervisely==6.73.138 \ No newline at end of file diff --git a/src/workflow.py b/src/workflow.py index 60ffb39..953f98f 100644 --- a/src/workflow.py +++ b/src/workflow.py @@ -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)