mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add message to exception in DataTable
This commit is contained in:
@@ -588,7 +588,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
|
||||
for the new cell content.
|
||||
"""
|
||||
if not self.is_valid_coordinate(coordinate):
|
||||
raise CellDoesNotExist()
|
||||
raise CellDoesNotExist(f"Coordinate {coordinate!r} is invalid.")
|
||||
|
||||
row_key, column_key = self.coordinate_to_cell_key(coordinate)
|
||||
self.update_cell(row_key, column_key, value, update_width=update_width)
|
||||
|
||||
Reference in New Issue
Block a user