Fix remove bug when removing gcode only files

This commit is contained in:
Ross Hendrickson 2013-09-08 15:09:10 -05:00
parent 8212f28b90
commit 26ebfe3e1f

View file

@ -208,11 +208,13 @@ class GcodeManager:
if absolutePath is None:
return
if stlPath:
# The files may or may not actually exits on the HD.
try:
os.remove(absolutePath)
os.remove(stlPath)
os.remove(absolutePath)
except OSError:
pass
if filename in self._metadata.keys():
del self._metadata[filename]