File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/superannotate/lib/infrastructure Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ minversion = 3.7
33log_cli =true
44python_files = test_*.py
55; pytest_plugins = ['pytest_profiling']
6- ; addopts = -n auto --dist= loadscope
6+ addopts = -n auto --dist loadscope
Original file line number Diff line number Diff line change @@ -90,13 +90,13 @@ def get_annotation_status_name(
9090 def _get_work_management_url (client : HttpClient ):
9191 if client .api_url != constants .BACKEND_URL :
9292 return "https://work-management-api.devsuperannotate.com/api/v1/"
93- return "https://work-management-api.devsuperannotate .com/api/v1/"
93+ return "https://work-management-api.superannotate .com/api/v1/"
9494
9595 @staticmethod
9696 def _get_item_service_url (client : HttpClient ):
9797 if client .api_url != constants .BACKEND_URL :
9898 return "https://item.devsuperannotate.com/api/v1/"
99- return "https://item.superannotate.com// api/v1/"
99+ return "https://item.superannotate.com/api/v1/"
100100
101101 def get_team (self , team_id : int ) -> TeamResponse :
102102 return self .client .request (
Original file line number Diff line number Diff line change 11import base64
22
33from lib .core .entities import WorkflowEntity
4+ from lib .core .exceptions import AppException
45from lib .core .jsx_conditions import Filter
56from lib .core .jsx_conditions import OperatorEnum
67from lib .core .jsx_conditions import Query
@@ -16,7 +17,7 @@ class WorkManagementService(BaseWorkManagementService):
1617 def get_workflow (self , pk : int ) -> WorkflowEntity :
1718 response = self .list_workflows (Filter ("id" , pk , OperatorEnum .EQ ))
1819 if response .error :
19- raise response .error
20+ raise AppException ( response .error )
2021 for w in response .data :
2122 if w .id == pk :
2223 return w
You can’t perform that action at this time.
0 commit comments