Skip to content

Commit

Permalink
fix: warn and continue with unknown category
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed May 25, 2024
1 parent c4f79b2 commit 26718f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp2hugo/internal/wpparser/wp_parser_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func getCommonFields(item *rss.Item) (*CommonFields, error) {
} else if isTag(category) {
pageTags = append(pageTags, NormalizeCategoryName(category.Value))
} else {
log.Fatal().
log.Warn().
Str("link", item.Link).
Any("categories", item.Categories).
Msgf("Unknown category: %s", category)
Expand Down

0 comments on commit 26718f4

Please sign in to comment.