mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
f535b61341
- 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 |
||
---|---|---|
.. | ||
__init__.py | ||
dependencies.py | ||
load.py | ||
markdown.py | ||
multilang.py | ||
oracle.py | ||
tables.py | ||
translations.py | ||
util.py |