mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-21 06:03:50 +00:00
edit tests and config
This commit is contained in:
parent
d6cd7b8cde
commit
2d279f6e71
6 changed files with 19 additions and 19 deletions
|
|
@ -56,10 +56,10 @@ class Config:
|
|||
return False
|
||||
except:
|
||||
self._sharePoints[sharePoint] = self._config
|
||||
logging.debug("shared configuration as: %s", sharePoint)
|
||||
logging.debug("configuration sharePoint: %s", sharePoint)
|
||||
return True
|
||||
|
||||
def getConfig(self, section, key, sharePoint=""):
|
||||
def get(self, section, key, sharePoint=""):
|
||||
"""!Method to read a single config entry
|
||||
|
||||
@param section: Section to read from
|
||||
|
|
@ -70,7 +70,7 @@ class Config:
|
|||
try:
|
||||
return self._sharePoints[sharePoint].get(section, key)
|
||||
except KeyError:
|
||||
logging.error("no shared config named: %s", sharePoint)
|
||||
logging.error("no sharePoint named: %s", sharePoint)
|
||||
except configparser.NoSectionError:
|
||||
logging.error("no shared config section: %s", section)
|
||||
except configparser.NoOptionError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue