From bf5a2968e227af90c9742a585939583f5d3da738 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 22 Jan 2022 20:51:22 +0100 Subject: Fix a bunch of bugs --- gerbonara/gerber/apertures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/gerber/apertures.py') diff --git a/gerbonara/gerber/apertures.py b/gerbonara/gerber/apertures.py index 872de9f..1e6c555 100644 --- a/gerbonara/gerber/apertures.py +++ b/gerbonara/gerber/apertures.py @@ -81,7 +81,7 @@ class Aperture: def __eq__(self, other): # We need to choose some unit here. - return hasattr(other, to_gerber) and self.to_gerber(MM) == other.to_gerber(MM) + return hasattr(other, 'to_gerber') and self.to_gerber(MM) == other.to_gerber(MM) def _rotate_hole_90(self): if self.hole_rect_h is None: -- cgit