-
Notifications
You must be signed in to change notification settings - Fork 633
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
pokedex dump -l doesn't work as documented #295
Comments
rluzuriaga
added a commit
to rluzuriaga/pokedex
that referenced
this issue
Apr 1, 2020
pokedex/main.py - create_parser() - Change the help message for the langs argument in the dump subparser to show the actual default and state that the 'all' and 'none' codes cannot be used alongside other codes. command_dump() - Check if 'all' or 'none' codes are passed alongside other codes. If they are, error message is printed and program ends. pokedex/db/load.py - dump() - Add check if langs code is 'all' or 'none'. If langs wasn't passed to the parser or 'all' was passed (they are the same since the default is 'all'), then everything will get dumped to the csv files. If 'none' was passed to the parser, then nothing new should be dumped to the csv files. pokexed/.travis.yml - Re-added 'pokedex dump -l all' that was previously remove on 77e3d9d Resolves: veekun#295
My pull request keeps the same default functionality just adds more checks and functionality for 'none' and 'all'. As well as changed the documentation. |
magical
pushed a commit
that referenced
this issue
Jun 17, 2020
- Add exception handling for SQLite, PostgreSQL, and MySQL. Sqlalchemy gives different exceptions for each database engine so I have seperated each exception for each engine. The error message passed by each engine is also different so that is checked as well. - Once the function gets one of those exceptions the following message is outputed and the program ends: `ERROR: Table 'TABLENAME' already exists in the database. Did you mean to use 'pokedex load -D'` - If the error is not that a table already exists, then the output will just be the full error from sqlalchemy. That way if someone runs into that error it can be reported as an issue and whoever can help would see the full error. --- Resolves part of issue #16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The help text for
pokedex dump -l
saysHowever, the values 'none' and 'all' don't work (they are treated as language names) and the default is to dump all languages, not just English.
We should either make it work the way it says it does or fix the documentation.
The text was updated successfully, but these errors were encountered: