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
merged 1 commit into from Sep 12, 2015

Conversation

@msnoigrs
Copy link
Contributor

@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
Member

@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

Loading

Kwpolska added a commit that referenced this issue Sep 12, 2015
Avoid FileNotFoundError while creating sitemap
@Kwpolska Kwpolska merged commit 9b05576 into getnikola:master Sep 12, 2015
1 of 2 checks passed
Loading
@msnoigrs
Copy link
Contributor Author

@msnoigrs msnoigrs commented Sep 12, 2015

Thanks.

Loading

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

Successfully merging this pull request may close these issues.

None yet

2 participants