Fix remove bug when removing gcode only files
This commit is contained in:
1 parent
8212f28b90
commit
26ebfe3e1f
1 file changed
+6
-4
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user