1 # -*- coding: utf-8 -*-
3 from sqlite3 import connect
4 from cbconf import Conf
6 class FileNotSetError(ValueError):
10 def __init__(self, dbpath=False):
12 self.con = connect(dbpath)
15 raise FileNotSetError("Database file must be set")
16 self.cur = self.con.cursor()