# HG changeset patch # User Daniele Nicolodi # Date 1320429632 -3600 # Node ID 28debb8307a508ba57c6ada22b4d638725eb3770 # Parent 7c0f3848f4a69a1aceddbc0ce2b30f2be0fa58b2 Really silence mysql warnings. diff -r 7c0f3848f4a6 -r 28debb8307a5 src/ltpdarepo/admin.py --- 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()