Skip to content

Commit c7165f0

Browse files
committed
Handle poetry run mypy src/ error so that add next_version
1 parent 882ae30 commit c7165f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mavedb/routers/experiments.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,15 @@ def get_experiment_score_sets(
182182
while current_version:
183183
if current_version.superseded_score_set:
184184
if not has_permission(user_data, current_version, Action.READ).permitted:
185-
current_version = next(
185+
next_version: Optional[ScoreSet] = next(
186186
(sup for sup in superseding_score_sets if sup.urn == current_version.superseded_score_set.urn),
187187
None
188188
)
189+
# handle poetry run mypy src/ error so that add next_version
190+
if next_version:
191+
current_version = next_version
192+
else:
193+
break
189194
else:
190195
break
191196
else:

0 commit comments

Comments
 (0)