Skip to content

Commit

Permalink
small fix for missing footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelobarrosalmeida committed Aug 9, 2018
1 parent 064c511 commit 709c53c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bomlib/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def testRegInclude(self):
def getFootprint(self, libraryToo=True):
ret = self.element.get("footprint")
if ret =="" and libraryToo:
ret = self.libpart.getFootprint()
if self.libpart:
ret = self.libpart.getFootprint()
return ret

def getDatasheet(self, libraryToo=True):
Expand Down

0 comments on commit 709c53c

Please sign in to comment.