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:
parent
d42d4556a6
commit
628242373c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user