Skip to content

Commit 98f3287

Browse files
committed
Return an error if user tries to save file for run in the created state
1 parent fe44afa commit 98f3287

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

simvue/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ def save(self, filename, category, filetype=None, preserve_path=False, name=None
525525
self._error(INIT_MISSING)
526526
return False
527527

528+
if self._status == 'created' and category == 'output':
529+
self._error("Cannot upload output files for runs in the created state")
530+
return False
531+
528532
is_file = False
529533
if isinstance(filename, str):
530534
if not os.path.isfile(filename):

0 commit comments

Comments
 (0)