Don't throw an exception for missing zero suppress, even though it is wrong
This commit is contained in:
parent
a765f8aa2c
commit
3fce700ef2
1 changed files with 4 additions and 3 deletions
|
|
@ -72,9 +72,10 @@ class FileSettings(object):
|
|||
|
||||
elif zero_suppression is not None:
|
||||
if zero_suppression not in ['leading', 'trailing']:
|
||||
raise ValueError('Zero suppression must be either leading or \
|
||||
trailling')
|
||||
self.zero_suppression = zero_suppression
|
||||
# This is a common problem in Eagle files, so just suppress it
|
||||
self.zero_suppression = 'leading'
|
||||
else:
|
||||
self.zero_suppression = zero_suppression
|
||||
|
||||
elif zeros is not None:
|
||||
if zeros not in ['leading', 'trailing']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue