leostat / rtfm

A database of common, interesting or useful commands, in one handy referable form
https://necurity.co.uk/osprog/2017-02-27-RTFM-Pythonized/
GNU General Public License v3.0
745 stars 93 forks source link

DB check #1

Closed TunnyTraffic closed 7 years ago

TunnyTraffic commented 7 years ago

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.

leostat commented 7 years ago

Thank you for this :)!