Skip to content

Commit

Permalink
tox -e format
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Dec 29, 2023
1 parent 483a1db commit 74980b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,10 @@ def get_all_records(
# all headers must be unique
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"
"try passing 'expected_headers' to get_all_records"
)
raise GSpreadException(
"the header row in the worksheet is not unique"
"try passing 'expected_headers' to get_all_records"
)
else:
# all expected headers must be unique
expected_headers_are_unique = len(expected_headers) == len(
Expand Down

0 comments on commit 74980b8

Please sign in to comment.