Commits

saar drimer  committed bebe5de

don't fail if there's no offset setting

  • Participants
  • Parent commits 9b00067

Comments (0)

Files changed (1)

File utils/footprint.py

                     # if the pad shape is defined as a 'rect' convert it into
                     # a path
                     if shape_type in ['rect', 'rectangle']:
-                        offset = shape['offset']
+                        offset = shape.get('offset') or [0, 0]
                         path = svg.rect_to_path(shape)
 
                     if shape_type in ['text']: