Commit 5f17abb3 authored by Ad Schellevis's avatar Ad Schellevis
parent 83488b67
...@@ -170,6 +170,7 @@ class RuleCache(object): ...@@ -170,6 +170,7 @@ class RuleCache(object):
os.remove(self.cachefile) os.remove(self.cachefile)
db = sqlite3.connect(self.cachefile) db = sqlite3.connect(self.cachefile)
db.text_factory = lambda x: unicode(x, 'utf-8', 'ignore')
cur = db.cursor() cur = db.cursor()
cur.execute("create table stats (timestamp number, files number)") cur.execute("create table stats (timestamp number, files number)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment