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

Newly created file: Python error when trying to get timestamp #7

Closed
christo-ph opened this issue Dec 21, 2019 · 2 comments
Closed

Newly created file: Python error when trying to get timestamp #7

christo-ph opened this issue Dec 21, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@christo-ph
Copy link

christo-ph commented Dec 21, 2019

This happens to a newly created md file, which is not yet under version control:

      File "/usr/local/lib/python3.7/site-packages/mkdocs_git_revision_date_localized_plugin/util.py", line 22, in get_revision_date_for_file
        unix_timestamp = int(self.g.log(path, n=1, date='short', format='%at'))
    ValueError: invalid literal for int() with base 10: ''

After a git commit mkdocs serve works as usual.

@timvink timvink added the bug Something isn't working label Dec 22, 2019
@timvink
Copy link
Owner

timvink commented Dec 22, 2019

Thanks for letting me know!

Released a new version, pip install --upgrade mkdocs-git-revision-date-localized-plugin should do the trick :)

@christo-ph
Copy link
Author

Thanks for your quick response and fix.

Works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants