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

Method safeGetInt

src/bmconfigparser.py:66–70  ·  view source on GitHub ↗
(self, section, field, default=0)

Source from the content-addressed store, hash-verified

64 return False
65
66 def safeGetInt(self, section, field, default=0):
67 try:
68 return self.getint(section, field)
69 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError, ValueError, AttributeError):
70 return default
71
72 def safeGet(self, section, option, default = None):
73 try:

Callers 15

decodeExtendedMethod · 0.80
runMethod · 0.80
HandleSendMessageMethod · 0.80
recaddrMethod · 0.80
sendaddrMethod · 0.80
recversionMethod · 0.80
runMethod · 0.80
sendMethod · 0.80
runMethod · 0.80
startMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected