Skip to content

Commit ef9464a

Browse files
authored
Merge pull request #709 from simvue-io/hotfix/none_closed
Hotfix/none closed
2 parents 010abe5 + 51a4337 commit ef9464a

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
pass_filenames: false
3636

3737
- repo: https://github.com/PyCQA/bandit.git
38-
rev: 1.8.2
38+
rev: 1.8.3
3939
hooks:
4040
- id: bandit
4141
args: [-lll, --recursive, clumper]

poetry.lock

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simvue/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,11 @@ def _tidy_run(self) -> None:
15211521
self._dispatcher.purge()
15221522
self._dispatcher.join()
15231523

1524-
if self._user_config.run.mode == "offline" and self._status != "created":
1524+
if (
1525+
self._sv_obj
1526+
and self._user_config.run.mode == "offline"
1527+
and self._status != "created"
1528+
):
15251529
self._user_config.offline.cache.joinpath(
15261530
"runs", f"{self._id}.closed"
15271531
).touch()

0 commit comments

Comments
 (0)