Skip to content

Commit

Permalink
Fix error message readability (#1435)
Browse files Browse the repository at this point in the history
The multi-line string in the code concatenates imperfectly when actually printed. Need to include spacing manually, unless one gets the header row in the worksheet is not unique.
  • Loading branch information
imrehg authored Mar 13, 2024
1 parent 5adb4bb commit 8d55a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def get_all_records(
header_row_is_unique = len(keys) == len(set(keys))
if not header_row_is_unique:
raise GSpreadException(
"the header row in the worksheet is not unique"
"the header row in the worksheet is not unique, "
"try passing 'expected_headers' to get_all_records"
)
else:
Expand Down

0 comments on commit 8d55a6b

Please sign in to comment.