pygerber
pygerber copied to clipboard
Parser Fails on Empty G04* command
Describe the bug pyparsing.exceptions.ParseException: Expected End of file, found 'G04' (at char 74), (line:2, col:1)
A clear and concise description of what the bug is. I have a file from Altium that has an empty G04 command and parser errors out on this command
To Reproduce
snippet of code
G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,23.4.1 (23)* G04* G04 Layer_Physical_Order=1* G04 Layer_Color=255* %FSLAX44Y44*% %MOMM*% G71*
Expected behavior I would think you would just ignore this.
Desktop (please complete the following information):
- OS: Mac/Linux
- Python version: 3.11
- PyGerber version: 2.3.1