Skip to content

Commit

Permalink
Synched with main
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningTimm committed Dec 5, 2024
2 parents 7a1eebe + 6ad0265 commit 04c9bb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Version 0.7.0 (2024-12-??)

- Fixed bug where converting files without lint violations would result in an error (#T16). Thanks @Athemis
- Fixed bug where converting files without lint violations would result in an error (#16). Thanks @Athemis
- Fixed bug where non-string watermarks caused an error (#19). Thanks @Athemis
- Added minimal test for conversion function.
- Add tests to PRs.
- Add lint `b003` that checks if all titles within the DatasetField block are unique.


## Version 0.6.0 (2024-03-18)

- Added a CHANGELOG file.
Expand Down
4 changes: 3 additions & 1 deletion yml2block/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ def no_trailing_spaces(list_item, tsv_keyword, level=Level.ERROR):

for entry in entries_to_check[tsv_keyword]:
try:
value = list_item[entry].value
# Ensure 'value' is a string, as re.search requires
# string input, not a numerical type like int.
value = str(list_item[entry].value)
except KeyError:
# This case occurs, when a typo in one of the required
# keywords is present. They can safely be skipped here,
Expand Down

0 comments on commit 04c9bb4

Please sign in to comment.