1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-16 20:38:15 +01:00

Fixed crash when there is a part outside of any assembly

This commit is contained in:
Chris Palmer 2012-03-21 13:40:26 +00:00
parent 35541747b9
commit 53aaca56e1

3
bom.py
View File

@ -119,7 +119,8 @@ def boms(machine):
stack.pop()
else:
main.add_part(s)
main.assemblies[stack[-1]].add_part(s)
if stack:
main.assemblies[stack[-1]].add_part(s)
main.print_bom(True, open(bom_dir + "/bom.txt","wt"))