Changed the exceptions for check_zone_fills and run_drc to simple errors.

This commit is contained in:
Salvador E. Tropea 2020-03-16 10:24:11 -03:00
parent b9964a9295
commit 070989c7b0
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@ Main Kiplot code
from datetime import datetime
import os
import sys
import operator
from . import plot_config as PCfg
@ -82,10 +83,12 @@ class Plotter(object):
logger.debug("Preflight checks")
if self.cfg.check_zone_fills:
raise PlotError("Not sure if Python scripts can do zone check!")
logger.error('check_zone_fills not yet supported')
sys.exit(misc.USUPPORTED_OPTION)
if self.cfg.run_drc:
raise PlotError("Not sure if Python scripts can run DRC!")
logger.error('run_drc not yet supported')
sys.exit(misc.USUPPORTED_OPTION)
def _output_is_layer(self, output):

View File

@ -4,3 +4,4 @@
# Error levels
NO_YAML_MODULE = 1
NO_PCBNEW_MODULE = 2
USUPPORTED_OPTION = 3