1
0
mirror of https://github.com/ThunderEX/py-kms.git synced 2025-04-18 07:44:00 +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
No known key found for this signature in database
GPG Key ID: CF5EAA08897EE137

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