more bug fixes in DB class

This commit is contained in:
madt1m 2018-06-30 11:42:16 +02:00
parent 9ee8f47cc6
commit 049b096cda

View File

@ -13,10 +13,6 @@ class DbHandler:
"""
def __init__(self, db_path="/tmp/tmp.sqlite"):
if os.path.isfile(db_path):
self.db_path = db_path
else:
raise IOError("Invalid path!")
self.db_path = db_path
self._con = sqlite3.connect(self.db_path)
self._c = self._con.cursor()