Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check suite existence before delete #2397

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ def platform_delete(self, suite_id: str) -> None:
Returns:
None
"""
comps_suite = self.platform.get_item(suite_id, ItemType.SUITE, raw=True)
try:
comps_suite = self.platform.get_item(suite_id, ItemType.SUITE, raw=True)
except RuntimeError:
return

comps_exps = comps_suite.get_experiments()
for comps_exp in comps_exps:
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ def platform_delete(self, suite_id: str) -> None:
Returns:
None
"""
suite = self.platform.get_item(suite_id, ItemType.SUITE, force=True, raw=False)
try:
suite = self.platform.get_item(suite_id, ItemType.SUITE, force=True, raw=False)
except RuntimeError:
return

exps = suite.experiments
for exp in exps:
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def platform_delete(self, suite_id: str) -> None:
Returns:
None
"""
suite = self.platform.get_item(suite_id, ItemType.SUITE, force=True, raw=False)
try:
suite = self.platform.get_item(suite_id, ItemType.SUITE, force=True, raw=False)
except RuntimeError:
return

exps = suite.experiments
for exp in exps:
try:
Expand Down
Loading