summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-03-05 20:48:12 +0100
committerjaseg <git@jaseg.de>2023-03-05 20:48:12 +0100
commitb5e6a48d543860839e4c266e0b2507e86cabacc8 (patch)
tree0d10495cdc5dc42767b5e6487f84e15ccc3b85c7
parenta9931c469befa0e8ae98de34177651c662926039 (diff)
downloadgerbonara-b5e6a48d543860839e4c266e0b2507e86cabacc8.tar.gz
gerbonara-b5e6a48d543860839e4c266e0b2507e86cabacc8.tar.bz2
gerbonara-b5e6a48d543860839e4c266e0b2507e86cabacc8.zip
Fix empty filename issue with some layer stacks
-rw-r--r--gerbonara/layers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/layers.py b/gerbonara/layers.py
index c298ffc..8d8b750 100644
--- a/gerbonara/layers.py
+++ b/gerbonara/layers.py
@@ -580,7 +580,7 @@ class LayerStack:
if layer_type in naming_scheme:
path = naming_scheme[layer_type].format(layer_number=num, board_name=self.board_name)
- elif layer.original_path:
+ elif layer.original_path and layer.original_path.name:
path = layer.original_path.name
else:
path = f'{self.board_name}-{layer_type.replace(" ", "_")}.gbr'