-
-
Notifications
You must be signed in to change notification settings - Fork 727
[FIX] website_require_login: Disconnect notification on SQL error #1149
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
[FIX] website_require_login: Disconnect notification on SQL error #1149
Conversation
8ff4632 to
2e3deb4
Compare
How to reproduce the issue:
1. Create a CRON with code "env.cr.execute('SELECT not_a_field FROM res_users')"
2. Manually Execute the CRON
Expected behavior:
The Exception is shown in the UI
Actual behavior:
The "Disconnected" notification is briefly shown, and right after a "Connected" notification is shown
2e3deb4 to
d957657
Compare
GSLabIt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
aleuffre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review: LGTM
|
@OCA/website-maintainers can this be merged please? thanks! |
| # raised and the cursor is currently closed | ||
| try: | ||
| user = website.user_id | ||
| except OperationalError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should OperationalError still be catched?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nevermind I understand
|
/ocabot merge minor |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at c12e358. Thanks a lot for contributing to OCA. ❤️ |
Supersede #1147 to resolve #1147 (review).
How to reproduce the issue:
Expected behavior:
The Exception is shown in the UI
Actual behavior:
The "Disconnected" notification is briefly shown, and right after a "Connected" notification is shown