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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user