Re: Suppressing Warnings

2009-08-31 Thread Victor Subervi
Right. Perhaps you could enlighten me as to what I should code to prevent that warning? It repeats 2,400 times and makes finding the real errors a pain in the behind. Victor On Tue, Aug 25, 2009 at 12:42 AM, peng yao wrote: > Warning: Can't create database 'spreadsheets'; database exists > > Thi

Re: Suppressing Warnings

2009-08-24 Thread peng yao
Warning: Can't create database 'spreadsheets'; database exists This is the answer. 2009/8/24 Victor Subervi > Hi, > I have the following python code: > > cursor.execute('create database if not exists spreadsheets;') > cursor.execute('use spreadsheets;') > > but it generates this warning: > >

Suppressing Warnings

2009-08-24 Thread Victor Subervi
Hi, I have the following python code: cursor.execute('create database if not exists spreadsheets;') cursor.execute('use spreadsheets;') but it generates this warning: Warning (from warnings module): File "C:\Python25\mysqlConverter.py", line 140 cursor.execute('use spreadsheets;') Warn