diff options
author | jaseg <git@jaseg.de> | 2022-01-29 21:05:31 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-29 21:05:31 +0100 |
commit | d5bbfade80f1927f2512b9f5bbb723255ec8926d (patch) | |
tree | 394ccd1bde86490c6df7e16f2d536534c41b30d3 /gerbonara/gerber/utils.py | |
parent | 1304847afe223661a574c0cd16d9a915c2bfa19f (diff) | |
download | gerbonara-d5bbfade80f1927f2512b9f5bbb723255ec8926d.tar.gz gerbonara-d5bbfade80f1927f2512b9f5bbb723255ec8926d.tar.bz2 gerbonara-d5bbfade80f1927f2512b9f5bbb723255ec8926d.zip |
Fix IPC-356 tests
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) |