diff options
Diffstat (limited to 'gerbonara/gerber/utils.py')
-rw-r--r-- | gerbonara/gerber/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/gerber/utils.py b/gerbonara/gerber/utils.py index 1aad900..6ea8bcb 100644 --- a/gerbonara/gerber/utils.py +++ b/gerbonara/gerber/utils.py @@ -76,7 +76,7 @@ class LengthUnit: return unit.convert_from(self, value) def format(self, value): - return f'{value:.3f}{self.shorthand}' + return f'{value:.3f}{self.shorthand}' if value is not None else '' def __call__(self, value, unit): return self.convert_from(unit, value) |