You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We updated our plugin and received an AttributeError: 'File' object has no attribute 'src_dir'
File: .... /lib/python3.9/site-packages/mkdocs_git_authors_plugin/plugin.py", line 121, in on_files
if file.src_dir is None:
AttributeError: 'File' object has no attribute 'src_dir'
This code was added in the merge on 25 Oct 2024 blame
It needs to check for the attribute before the value in the same way as "hasattr(file, "generated_by")"
if hasattr(file, 'src_dir') and file.src_dir is None:
The text was updated successfully, but these errors were encountered:
We updated our plugin and received an AttributeError: 'File' object has no attribute 'src_dir'
File: .... /lib/python3.9/site-packages/mkdocs_git_authors_plugin/plugin.py", line 121, in on_files
if file.src_dir is None:
AttributeError: 'File' object has no attribute 'src_dir'
This code was added in the merge on 25 Oct 2024 blame
It needs to check for the attribute before the value in the same way as "hasattr(file, "generated_by")"
The text was updated successfully, but these errors were encountered: