Gerber parser crashes with Aperture Macros

Issue #56 resolved
Juan Pablo Caram repo owner created an issue

No description provided.

Comments (1)

  1. Juan Pablo Caram reporter

    In Gerber.do_flashes(), aperture = self.apertures[flash['aperture']] was breaking when not finding the aperture. An aperture based on a macro is not supported yet, so will not get stored in the list. Fix was:

    try:
        aperture = self.apertures[flash['aperture']]
    except KeyError:
        print "ERROR: Trying...", flash['aperture']
        continue
    
  2. Log in to comment