Changed the exceptions for check_zone_fills and run_drc to simple errors.
This commit is contained in:
parent
b9964a9295
commit
070989c7b0
|
|
@ -4,6 +4,7 @@ Main Kiplot code
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import operator
|
import operator
|
||||||
|
|
||||||
from . import plot_config as PCfg
|
from . import plot_config as PCfg
|
||||||
|
|
@ -82,10 +83,12 @@ class Plotter(object):
|
||||||
logger.debug("Preflight checks")
|
logger.debug("Preflight checks")
|
||||||
|
|
||||||
if self.cfg.check_zone_fills:
|
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:
|
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):
|
def _output_is_layer(self, output):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,4 @@
|
||||||
# Error levels
|
# Error levels
|
||||||
NO_YAML_MODULE = 1
|
NO_YAML_MODULE = 1
|
||||||
NO_PCBNEW_MODULE = 2
|
NO_PCBNEW_MODULE = 2
|
||||||
|
USUPPORTED_OPTION = 3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue