Skip to content

Commit

Permalink
fix minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ring630 committed Nov 19, 2024
1 parent d94a21f commit 9aa8065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyedb/dotnet/edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3255,7 +3255,8 @@ def add_design_variable(self, variable_name, variable_value, is_parameter=False,
var_server = self.variable_exists(variable_name)
if not var_server[0]:
var_server[1].AddVariable(variable_name, self.edb_value(variable_value), is_parameter)
var_server[1].SetVariableDescription(variable_name, description)
if description:
var_server[1].SetVariableDescription(variable_name, description)
return True, var_server[1]
self.logger.error("Variable %s already exists.", variable_name)
return False, var_server[1]
Expand Down

0 comments on commit 9aa8065

Please sign in to comment.