Merge pull request #32 from speedst3r/master

Fixes for SQLite errors
This commit is contained in:
Matteo ℱan 2019-06-03 22:59:39 +02:00 committed by GitHub
commit 413cbfa7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import os
import logging
# sqlite3 is optional.
@ -74,7 +75,7 @@ def sql_update_epid(dbName, kmsRequest, response):
cmid = str(kmsRequest['clientMachineId'].get())
con = None
try:
con = sqlite3.connect(self.dbName)
con = sqlite3.connect(dbName)
cur = con.cursor()
cur.execute("SELECT * FROM clients WHERE clientMachineId=?;", [cmid])
try: