8000 Update pymysql/cursors.py · PyMySQL/PyMySQL@0a16347 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a16347

Browse files
sanchezgmethane
andauthored
Update pymysql/cursors.py
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent db640e4 commit 0a16347

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pymysql/cursors.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ def __iter__(self):
349349
return self
350350

351351
def __next__(self):
352-
return next(iter(self.fetchone, N 692E one))
352+
row = self.fetchone()
353+
if row is None:
354+
raise StopIteration
355+
return row
353356

354357
Warning = err.Warning
355358
Error = err.Error

0 commit comments

Comments
 (0)
0