Skip to content

Commit

Permalink
BIGFIX: my local linter missed this one :(
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed May 11, 2024
1 parent dcc598a commit 7e38985
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MethodicConfigurator/frontend_tkinter_component_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ def validate_cell_voltage(self, event, entry, path): # pylint: disable=too-many
if is_focusout_event:
entry.delete(0, tk.END)
entry.insert(0, BatteryCell.limit_min_voltage(chemistry))
raise VoltageTooLowError(f"is below the {chemistry} minimum limit of {
BatteryCell.limit_min_voltage(chemistry)}")
raise VoltageTooLowError(f"is below the {chemistry} minimum limit of "
f"{BatteryCell.limit_min_voltage(chemistry)}")
if voltage > BatteryCell.limit_max_voltage(chemistry):
if is_focusout_event:
entry.delete(0, tk.END)
entry.insert(0, BatteryCell.limit_max_voltage(chemistry))
raise VoltageTooHighError(f"is above the {chemistry} maximum limit of {
BatteryCell.limit_max_voltage(chemistry)}")
raise VoltageTooHighError(f"is above the {chemistry} maximum limit of "
f"{BatteryCell.limit_max_voltage(chemistry)}")
except (VoltageTooLowError, VoltageTooHighError) as e:
if is_focusout_event:
show_error_message("Error", f"Invalid value '{value}' for {'>'.join(list(path))}\n"
Expand Down

0 comments on commit 7e38985

Please sign in to comment.