Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid FileNotFoundError while creating sitemap #2074

merged 1 commit into from Sep 12, 2015


Copy link

@msnoigrs msnoigrs commented Sep 12, 2015

FileNotFoundError occurs when USE_SLUGIFY = False and it has paths ends with period.

@@ -147,7 +147,11 @@ def scan_locs():
continue # Totally empty, not on sitemap
path = os.path.relpath(root, output)
# ignore the current directory.
path = (path.replace(os.sep, '/') + '/').replace('./', '')
#path = (path.replace(os.sep, '/') + '/').replace('./', '')
Copy link

@Kwpolska Kwpolska Sep 12, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this comment. will fix myself

Kwpolska added a commit that referenced this pull request Sep 12, 2015
Avoid FileNotFoundError while creating sitemap
@Kwpolska Kwpolska merged commit 9b05576 into getnikola:master Sep 12, 2015
Copy link
Contributor Author

msnoigrs commented Sep 12, 2015


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants