Skip to content

Commit 8623444

Browse files
committed
Fix flake8 blames again
1 parent 62308b5 commit 8623444

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

aiomysql/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def _read_query_result(self, unbuffered=False):
588588
try:
589589
result = MySQLResult(self)
590590
yield from result.init_unbuffered_query()
591-
except:
591+
except BaseException:
592592
result.unbuffered_active = False
593593
result.connection = None
594594
raise

aiomysql/sa/result.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ def fetchall(self):
377377
except AttributeError:
378378
self._non_result()
379379
else:
380-
l = self._process_rows(rows)
380+
ret = self._process_rows(rows)
381381
yield from self.close()
382-
return l
382+
return ret
383383

384384
@asyncio.coroutine
385385
def fetchone(self):
@@ -415,10 +415,10 @@ def fetchmany(self, size=None):
415415
except AttributeError:
416416
self._non_result()
417417
else:
418-
l = self._process_rows(rows)
419-
if len(l) == 0:
418+
ret = self._process_rows(rows)
419+
if len(ret) == 0:
420420
yield from self.close()
421-
return l
421+
return ret
422422

423423
@asyncio.coroutine
424424
def first(self):

aiomysql/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,5 @@ def __aexit__(self, exc_type, exc_val, exc_tb):
207207
try:
208208
from asyncio import coroutines
209209
coroutines._COROUTINE_TYPES += (_ContextManager,)
210-
except:
210+
except Exception:
211211
pass

0 commit comments

Comments
 (0)