[sqlalchemy] Re: Do you have a way to track easily the source of « SAWarning: Unicode type received non-unicode bind param value. » ?

2011-05-23 Thread Stéphane Klein
Great news ! With : import warnings warnings.filterwarnings('error') and SQLAlchemy 0.7.0 I can see unicode value issue in error message. Thanks for your help, Stéphane -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group,

[sqlalchemy] Re: Do you have a way to track easily the source of « SAWarning: Unicode type received non-unicode bind param value. » ?

2011-05-23 Thread virhilo
use python -W error your_script.py or PYTHONWARNINGS=error your_script On 23 Maj, 10:17, Stéphane Klein steph...@harobed.org wrote: On 23 mai, 10:14, Chris Withers ch...@simplistix.co.uk wrote: I think you can do this by setting the warning filter to error early in your application:

[sqlalchemy] Re: Do you have a way to track easily the source of « SAWarning: Unicode type received non-unicode bind param value. » ?

2011-05-23 Thread virhilo
looks like my previous message diseappeared somehow:( PYTHONWARNINGS=error::RuntimeWarning::0,error::UnicodeWarning::0 your_script.py On 23 Maj, 10:17, Stéphane Klein steph...@harobed.org wrote: On 23 mai, 10:14, Chris Withers ch...@simplistix.co.uk wrote: I think you can do this by setting