mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
info() might return None or empty string
This commit is contained in:
@@ -224,7 +224,7 @@ class CursorWarningMixIn:
|
||||
def _check_for_warnings(self):
|
||||
from string import atoi, split
|
||||
info = self._get_db().info()
|
||||
if info is None:
|
||||
if not info:
|
||||
return
|
||||
warnings = atoi(split(info)[-1])
|
||||
if warnings:
|
||||
|
||||
Reference in New Issue
Block a user