diff options
Diffstat (limited to 'gerbonara/gerber/gerber_statements.py')
-rw-r--r-- | gerbonara/gerber/gerber_statements.py | 3 |
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}>' |