MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getInt

Method getInt

src/octoprint/settings.py:312–321  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

310 return results
311
312 def getInt(self, path):
313 value = self.get(path)
314 if value is None:
315 return None
316
317 try:
318 return int(value)
319 except ValueError:
320 self._logger.warn("Could not convert %r to a valid integer when getting option %r" % (value, path))
321 return None
322
323 def getString(self, path):
324 value = self.get(path)

Callers 15

runMethod · 0.80
__init__Method · 0.80
_parseHotendCommandMethod · 0.80
checkSoftwareVersionMethod · 0.80
cameraSettingsMethod · 0.80
cameraSettingsMethod · 0.80
startProcessMethod · 0.80
getConnectionOptionsMethod · 0.80
connectMethod · 0.80
savedBaudrateMethod · 0.80
baudrateListMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected