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

Method completionCb

src/astroprint/software.py:206–217  ·  view source on GitHub ↗
(error = None)

Source from the content-addressed store, hash-verified

204 time.sleep(0.5) #give the message a chance to be sent
205
206 def completionCb(error = None):
207 if os.path.isfile(releasePath):
208 os.remove(releasePath)
209
210 if error:
211 self._onCompleted(False)
212 else:
213 if relData['force_setup']:
214 #remove the config file
215 os.remove(self._manager._settings._configfile)
216
217 self._onCompleted(True)
218
219 try:
220 # We should only update the cache once.

Callers

nothing calls this directly

Calls 2

_onCompletedMethod · 0.95
removeMethod · 0.80

Tested by

no test coverage detected