mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-25 22:42:05 +00:00
[Update] 修改config.py
This commit is contained in:
parent
0f32e78891
commit
d664018bd7
@ -200,7 +200,10 @@ class Config(dict):
|
||||
return False
|
||||
e.strerror = 'Unable to load configuration file (%s)' % e.strerror
|
||||
raise
|
||||
return self.from_mapping(obj)
|
||||
if obj:
|
||||
return self.from_mapping(obj)
|
||||
else:
|
||||
return False
|
||||
|
||||
def from_mapping(self, *mapping, **kwargs):
|
||||
"""Updates the config like :meth:`update` ignoring items with non-upper
|
||||
|
Loading…
Reference in New Issue
Block a user