1
0
mirror of https://github.com/ThunderEX/py-kms.git synced 2026-01-03 23:22:27 +03:00

fix issue #32 that client does not have certain parameter

This commit is contained in:
ThunderEX
2019-02-08 22:45:42 +08:00
parent d42d4556a6
commit 628242373c

View File

@@ -119,7 +119,7 @@ class kmsBase:
self.data = data
self.config = config
self.dbName = os.path.join(os.path.dirname(__file__), 'clients.db')
if self.config['sqlite'] and self.config['dbSupport']:
if self.config.get('sqlite', False) and self.config.get('dbSupport', False):
if not os.path.isfile(self.dbName):
# Initialize the database.
con = None