Don't throw an exception for missing zero suppress, even though it is wrong

This commit is contained in:
Garret Fick 2016-02-15 23:53:52 +08:00
parent a765f8aa2c
commit 3fce700ef2

View file

@ -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']: