From fc90884087a3b079fba64cb63a5cc9cb5942bf22 Mon Sep 17 00:00:00 2001 From: adustman Date: Sun, 7 Sep 2003 02:51:15 +0000 Subject: [PATCH] info() might return None or empty string --- MySQLdb/MySQLdb/cursors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: