summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/gerber_statements.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-19 00:36:05 +0100
committerjaseg <git@jaseg.de>2022-01-19 00:36:05 +0100
commit9e86bf6b3e92706c190283af83d71999fee03442 (patch)
treee3bb083ae976859df953d9d16d2eb5f628f0ab45 /gerbonara/gerber/gerber_statements.py
parentd85790bc6d40deb1d52cc5d8a4c178f664635625 (diff)
downloadgerbonara-9e86bf6b3e92706c190283af83d71999fee03442.tar.gz
gerbonara-9e86bf6b3e92706c190283af83d71999fee03442.tar.bz2
gerbonara-9e86bf6b3e92706c190283af83d71999fee03442.zip
Fix old gerber tests
Diffstat (limited to 'gerbonara/gerber/gerber_statements.py')
-rw-r--r--gerbonara/gerber/gerber_statements.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gerbonara/gerber/gerber_statements.py b/gerbonara/gerber/gerber_statements.py
index 55a4bf3..62aab3b 100644
--- a/gerbonara/gerber/gerber_statements.py
+++ b/gerbonara/gerber/gerber_statements.py
@@ -92,8 +92,7 @@ class ApertureMacroStmt(ParamStmt):
self.macro = macro
def to_gerber(self, settings):
- unit = settings.unit if settings else None
- return f'%AM{self.macro.name}*\n{self.macro.to_gerber(unit=unit)}*\n%'
+ return f'%AM{self.macro.name}*\n{self.macro.to_gerber(unit=settings.unit)}*\n%'
def __str__(self):
return f'<AM Aperture Macro {self.macro.name}: {self.macro}>'