Mercurial > hg > ltpdarepo
changeset 167:28debb8307a5
Really silence mysql warnings.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 04 Nov 2011 19:00:32 +0100 |
parents | 7c0f3848f4a6 |
children | 6f1aade052f6 |
files | src/ltpdarepo/admin.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ltpdarepo/admin.py Fri Nov 04 18:55:20 2011 +0100 +++ b/src/ltpdarepo/admin.py Fri Nov 04 19:00:32 2011 +0100 @@ -363,7 +363,7 @@ logger.setLevel(logging.WARNING) # silence annoying mysql warnings - warnings.filterwarnings('ignore', module='MySQLdb') + warnings.filterwarnings('ignore', category=mysql.Warning) # dispatch command line commands.dispatch()