Removed try/except around DB connection. conn = sqlite3.connect('snips.db') created an empty file if it didn't exist. Used import os.path and os,path.exists to check. It's not neat and it doesn't work when calling 'rtfm.py -h' as the snips connection isn't called.
Removed try/except around DB connection.
conn = sqlite3.connect('snips.db')
created an empty file if it didn't exist. Used import os.path and os,path.exists to check. It's not neat and it doesn't work when calling 'rtfm.py -h' as the snips connection isn't called.