MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / safeGet

Method safeGet

src/bmconfigparser.py:72–76  ·  view source on GitHub ↗
(self, section, option, default = None)

Source from the content-addressed store, hash-verified

70 return default
71
72 def safeGet(self, section, option, default = None):
73 try:
74 return self.get(section, option)
75 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError, ValueError, AttributeError):
76 return default
77
78 def items(self, section, raw=False, variables=None):
79 return ConfigParser.ConfigParser.items(self, section, True, variables)

Callers 12

__init__Method · 0.80
runMethod · 0.80
initCLFunction · 0.80
smtp_AUTHMethod · 0.80
startMethod · 0.80
signFunction · 0.80
chooseConnectionFunction · 0.80
getListeningIPMethod · 0.80
loopMethod · 0.80
click_actionSettingsMethod · 0.80
__init__Method · 0.80
createSupportMessageFunction · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected