List:General Discussion« Previous MessageNext Message »
From:Victor Subervi Date:August 31 2009 5:43pm
Subject:Re: Suppressing Warnings
View as plain text  
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 <xweiyao@stripped> wrote:

> Warning: Can't create database 'spreadsheets'; database exists
>
> This is the answer.
>
> 2009/8/24 Victor Subervi <victorsubervi@stripped>
>
> 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;')
>> Warning: Can't create database 'spreadsheets'; database exists
>>
>> What do?
>> TIA,
>> Victor
>>
>
>

Thread
Suppressing WarningsVictor Subervi24 Aug
  • Re: Suppressing Warningspeng yao25 Aug
    • Re: Suppressing WarningsVictor Subervi31 Aug