Skip to content

Commit

Permalink
Fix DBManager.parse_value
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 21, 2023
1 parent f476c3c commit 1fb56a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinetoolbox/spine_db_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,9 @@ def get_value_from_data(self, data, role=Qt.ItemDataRole.DisplayRole):
return self._format_value(parsed_value, role=role)

@staticmethod
def _parse_value(db_value, value_type=None):
def _parse_value(db_value, type_=None):
try:
return from_database(db_value, value_type=value_type)
return from_database(db_value, type_=value_type)
except ParameterValueFormatError as error:
return error

Expand Down

0 comments on commit 1fb56a4

Please sign in to comment.