Skip to content

Commit

Permalink
Merge pull request #38 from marcelobarrosalmeida/master
Browse files Browse the repository at this point in the history
small fix for missing footprint
  • Loading branch information
SchrodingersGat authored Aug 9, 2018
2 parents 064c511 + 709c53c commit e20a7fa
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 e20a7fa

Please sign in to comment.