From b5e6a48d543860839e4c266e0b2507e86cabacc8 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 5 Mar 2023 20:48:12 +0100 Subject: Fix empty filename issue with some layer stacks --- gerbonara/layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara') 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' -- cgit