summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-02-15 23:53:52 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-02-15 23:53:52 +0800
commit3fce700ef289d16053b0f60cccdfd4d5956daf5c (patch)
tree1e345197aa6ab7c3cd73685e2fd87e71d322adc1 /gerber
parenta765f8aa2c980cdbd6666f32f5be62c88118c152 (diff)
downloadgerbonara-3fce700ef289d16053b0f60cccdfd4d5956daf5c.tar.gz
gerbonara-3fce700ef289d16053b0f60cccdfd4d5956daf5c.tar.bz2
gerbonara-3fce700ef289d16053b0f60cccdfd4d5956daf5c.zip
Don't throw an exception for missing zero suppress, even though it is wrong
Diffstat (limited to 'gerber')
-rw-r--r--gerber/cam.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gerber/cam.py b/gerber/cam.py
index c567055..08d80de 100644
--- a/gerber/cam.py
+++ b/gerber/cam.py
@@ -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']: