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

Catch initializing errors with the shell #867

Merged
merged 1 commit into from
May 8, 2024
Merged

Catch initializing errors with the shell #867

merged 1 commit into from
May 8, 2024

Conversation

nicozanf
Copy link
Collaborator

@nicozanf nicozanf commented May 8, 2024

If the shell is run and a from apps.showcase.examples.common import db issued (as explained in the docs) before running once a py4web run apps, the db in the showcase/example is not created correctly - and a strange "sqlite3.OperationalError: no such table: person" error is shown.

It's not usual, but quite misleading. This explain it and simply show how to fix it.

@nicozanf nicozanf merged commit ba59a97 into web2py:master May 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant