Skip to content

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

@christo-ph

Description

@christo-ph

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions