Assigned a number to the experimetal warning about missing refs
Related to #248
This commit is contained in:
parent
0cf25c3295
commit
de4daddc52
|
|
@ -228,6 +228,7 @@ W_NOPART = '(W095) '
|
|||
W_MAXDEPTH = '(W096) '
|
||||
W_3DRESVER = '(W097) '
|
||||
W_DOWN3D = '(W098) '
|
||||
W_MISSREF = '(W099) '
|
||||
# Somehow arbitrary, the colors are real, but can be different
|
||||
PCB_MAT_COLORS = {'fr1': "937042", 'fr2': "949d70", 'fr3': "adacb4", 'fr4': "332B16", 'fr5': "6cc290"}
|
||||
PCB_FINISH_COLORS = {'hal': "8b898c", 'hasl': "8b898c", 'imag': "8b898c", 'enig': "cfb96e", 'enepig': "cfb96e",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ from copy import deepcopy
|
|||
import os
|
||||
import re
|
||||
from .gs import GS
|
||||
from .misc import W_BADFIELD, W_NEEDSPCB, DISTRIBUTORS, IFILT_EXPAND_TEXT_VARS, W_NOPART
|
||||
from .misc import W_BADFIELD, W_NEEDSPCB, DISTRIBUTORS, IFILT_EXPAND_TEXT_VARS, W_NOPART, W_MISSREF
|
||||
from .optionable import Optionable, BaseOptions
|
||||
from .registrable import RegOutput
|
||||
from .error import KiPlotConfigurationError
|
||||
|
|
@ -717,7 +717,7 @@ class BoMOptions(BaseOptions):
|
|||
except ValueError:
|
||||
msg = 'Missing `{}` in aggregated file `{}`'.format(ref_n, fname)
|
||||
if GS.global_csv_accept_no_ref:
|
||||
logger.warning(msg)
|
||||
logger.warning(W_MISSREF+msg)
|
||||
else:
|
||||
raise KiPlotConfigurationError(msg)
|
||||
return ref_index
|
||||
|
|
|
|||
Loading…
Reference in New Issue