Excluded an "internal error check" from coverage and commented why.

This commit is contained in:
Salvador E. Tropea 2020-05-25 20:01:31 -03:00
parent cc4d942111
commit 153d967015
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ class Plotter(object):
self._do_sch_print(board, pc, op, brd_file)
elif self._output_is_pcb_print(op):
self._do_pcb_print(board, pc, op, brd_file)
else:
else: # pragma no cover
# We shouldn't get here, means the above if is incomplete
plot_error("Don't know how to plot type "+op.options.type)
except PlotError as e:
plot_error("In section '"+op.name+"' ("+op.options.type+"): "+str(e))