diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py index 5298fa5..517b42a 100644 --- a/MySQLdb/MySQLdb/cursors.py +++ b/MySQLdb/MySQLdb/cursors.py @@ -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: