From 6c5c33be12c60fec46e40f19af391079d32120db Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 26 May 2020 14:52:54 -0300 Subject: [PATCH] Excluded from coverage an internal error. Is code that gets executed only if we are in the middle of an implementation. --- kiplot/plot_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kiplot/plot_config.py b/kiplot/plot_config.py index 65261392..529b0327 100644 --- a/kiplot/plot_config.py +++ b/kiplot/plot_config.py @@ -453,8 +453,9 @@ class OutputOptions(object): self.type_options = SchPrintOptions() elif otype == self.PDF_PCB_PRINT: self.type_options = PcbPrintOptions() - else: - self.type_options = None + else: # pragma: no cover + # If we get here it means the above if is incomplete + raise KiPlotConfigurationError("Output options not implemented for "+otype) def validate(self):