Skip to content
Snippets Groups Projects
Unverified Commit db290293 authored by Brian Rose's avatar Brian Rose Committed by GitHub
Browse files

[ENH] Raise error if page URL does not start with os.sep (#471)

* Raise error if page URL does not start with os.sep

* Fix indentation
parent dc45f5a7
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,10 @@ def _check_url_page(url_page, content_folder_name): ...@@ -79,6 +79,10 @@ def _check_url_page(url_page, content_folder_name):
url_page url_page
) )
) )
if not url_page.startswith(os.sep):
raise ValueError(
"Page URLs need to start with {}. Here is the page URL: {}".format(os.sep, url_page)
)
def _prepare_url(url): def _prepare_url(url):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment