Skip to content

Commit 6f116bd

Browse files
authored
Merge pull request #119 from Paperspace/Fix-StopIteration-in-listing-jobs
Fix StopIteration when listing job logs in Python 3.7
2 parents 719d577 + f686d44 commit 6f116bd

File tree

1 file changed

+1
-1
lines changed
  • gradient/api_sdk/repositories

1 file changed

+1
-1
lines changed

gradient/api_sdk/repositories/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _get_logs_generator(self, job_id, line, limit):
6060

6161
for log in logs:
6262
if log.message == "PSEOF":
63-
raise StopIteration()
63+
return
6464

6565
last_line_number += 1
6666
yield log

0 commit comments

Comments
 (0)