[PcbDraw][Fixed] Removed temporal style file

This commit is contained in:
Salvador E. Tropea 2022-10-18 10:11:53 -03:00
parent bb6b0c6141
commit f61ca58ffa
1 changed files with 3 additions and 0 deletions

View File

@ -307,6 +307,9 @@ class PcbDrawOptions(VariantOptions):
except (RuntimeError, SyntaxError, IOError) as e:
logger.error('PcbDraw error: '+str(e))
exit(PCBDRAW_ERR)
finally:
if tmp_style:
os.remove(tmp_style)
save(image, name, self.dpi)
return