Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve some exceptions messages #620

Closed
eMerzh opened this issue Nov 21, 2017 · 2 comments
Closed

Improve some exceptions messages #620

eMerzh opened this issue Nov 21, 2017 · 2 comments

Comments

@eMerzh
Copy link

eMerzh commented Nov 21, 2017

Hi,

thanks for your project,
i recently switched fro python-mysql to pymysql using sqlalchemy.
and some of my exception had loose some really helpfull details.

like before :

InvalidRequestError("This Session's transaction has been rolled back due to a previous exception 
during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original
exception was: UPDATE statement on table 'XXXX' expected to update 1 row(s); 0 were matched.",)

After:

InvalidRequestError("This Session's transaction has been rolled back due to a previous exception
during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original 
exception was: 'ProtocolError' object has no attribute 'translate'",)

it would be really helpfull to have those details back :)

Many Thanks

@methane
Copy link
Member

methane commented Nov 22, 2017

Complete step to reproduce? (hopefully, without SQLAlchemy).

@methane
Copy link
Member

methane commented Dec 19, 2017

At least, full traceback is required.
I can't understand anything from your report.

@methane methane closed this as completed Dec 20, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants