andyblight / share-tracking-1

Share tracking app with a Tcl/TK GUI and SQLite database.
MIT License
0 stars 0 forks source link

Handle no table errors better #20

Open andyblight opened 1 year ago

andyblight commented 1 year ago

Delete shared.db file. Then start the app. Generates these errors.

SQLite error: no such table: Holdings
Exception class is:  <class 'sqlite3.OperationalError'>
SQLite traceback: 
['Traceback (most recent call last):\n', '  File "/home/andy/git/share-tracking/database/holdings_table.py", line 168, in _get_rows\n    cursor.execute(sql_query)\n', 'sqlite3.OperationalError: no such table: Holdings\n']
SQLite error: no such table: Holdings
Exception class is:  <class 'sqlite3.OperationalError'>
SQLite traceback: 
['Traceback (most recent call last):\n', '  File "/home/andy/git/share-tracking/database/holdings_table.py", line 168, in _get_rows\n    cursor.execute(sql_query)\n', 'sqlite3.OperationalError: no such table: Holdings\n']
SQLite error: no such table: Holdings
Exception class is:  <class 'sqlite3.OperationalError'>
SQLite traceback: 
['Traceback (most recent call last):\n', '  File "/home/andy/git/share-tracking/database/holdings_table.py", line 168, in _get_rows\n    cursor.execute(sql_query)\n', 'sqlite3.OperationalError: no such table: Holdings\n']