Skip to content

Commit

Permalink
fix: Priority must be specified as floating point
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Nov 29, 2024
1 parent ae4f0d5 commit 29f9efe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pelican/plugins/sitemap/sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def is_excluded(item):
priority = float(priority_raw)
except ValueError:
log.exception(
f"sitemap: Require numeric priority. Got: {priority_raw!r}"
"sitemap: Specify priority as a floating-point number, "
f"not the current value: {priority_raw!r}"
)
priority = priorities[content_type]

Expand Down

0 comments on commit 29f9efe

Please sign in to comment.