Commits

saar drimer committed bebe5de

don't fail if there's no offset setting

Comments (0)

Files changed (1)

                     # 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']: