info() might return None or empty string

This commit is contained in:
adustman
2003-09-07 02:51:15 +00:00
parent 5ae682f33e
commit fc90884087

View File

@@ -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: