Fix remove bug when removing gcode only files
This commit is contained in:
parent
8212f28b90
commit
26ebfe3e1f
1 changed files with 6 additions and 4 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue