Skip to content

Commit

Permalink
fix a small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Jan 23, 2025
1 parent 6423b3c commit 0a727f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learning_loop_node/trainer/trainer_logic_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ async def _upload_model_return_new_model_uuid(self, context: Context) -> str:
"""

files = await self._get_latest_model_files()
if files is None:
if files is None or len(files) == 0:
raise CriticalError('Could not get latest model files. Training might have failed.')

if isinstance(files, List):
Expand Down

0 comments on commit 0a727f3

Please sign in to comment.