Commit 1a550b8e authored by TomCC's avatar TomCC Committed by Wayne Stambaugh
Browse files

Fix Python BOM script bug when output file cannot be opened. (fixes:lp:1391904)

parent 1ebaf137
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -26,8 +26,9 @@ net = kicad_netlist_reader.netlist(sys.argv[1])
try:
    f = open(sys.argv[2], 'w')
except IOError:
    e = "Can't open output file for writing: " + sys.argv[2]
    print(__file__, ":", e, file=sys.stderr)
    f = stdout
    f = sys.stdout

# subset the components to those wanted in the BOM, controlled
# by <configure> block in kicad_netlist_reader.py