Update __init__.py

This commit is contained in:
Jacty 2020-05-13 06:11:07 +08:00 committed by GitHub
parent b5684909d1
commit 33ab0a3663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class BaseSettings(MutableMapping):
def __init__(self, values=None, priority='project'):
self.frozen = False
self.attributes = {}
if values is not None:
if values:
self.update(values, priority)
def __getitem__(self, opt_name):