Skip to content

Commit

Permalink
Solving issue #152 - crash with "1 k" value resistor
Browse files Browse the repository at this point in the history
-> Nice message when "get_style" function does not work as expected.
  • Loading branch information
Samuel authored and yaqwsx committed Jul 27, 2023
1 parent 8a33186 commit 3ce19c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcbdraw/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ def get_style(self, *args: Union[str, int]) -> Any:
value = value[key]
return value
except KeyError as e:
raise e from None
raise UserWarning(f"Invalid argument for get_style : {args[0]}, {args[1]}")

def execute_plot_plan(self, to_plot: List[PlotAction]) -> None:
"""
Expand Down

0 comments on commit 3ce19c2

Please sign in to comment.