MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / get

Method get

src/bmconfigparser.py:47–58  ·  view source on GitHub ↗
(self, section, option, raw=False, variables=None)

Source from the content-addressed store, hash-verified

45 return ConfigParser.ConfigParser.set(self, section, option, value)
46
47 def get(self, section, option, raw=False, variables=None):
48 try:
49 if section == "bitmessagesettings" and option == "timeformat":
50 return ConfigParser.ConfigParser.get(self, section, option, raw, variables)
51 return ConfigParser.ConfigParser.get(self, section, option, True, variables)
52 except ConfigParser.InterpolationError:
53 return ConfigParser.ConfigParser.get(self, section, option, True, variables)
54 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError) as e:
55 try:
56 return BMConfigDefaults[section][option]
57 except (KeyError, ValueError, AttributeError):
58 raise e
59
60 def safeGetBoolean(self, section, field):
61 try:

Callers 2

safeGetMethod · 0.95
readMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected