mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-29 17:22:37 -04:00
Fixed privacy plugin crashing on non-existent file
This commit is contained in:
@@ -200,9 +200,11 @@ class PrivacyPlugin(BasePlugin[PrivacyConfig]):
|
||||
self._patch, file
|
||||
))
|
||||
|
||||
# Otherwise just copy external asset to output directory
|
||||
# Otherwise just copy external asset to output directory if it
|
||||
# exists, i.e., if the download succeeded
|
||||
else:
|
||||
file.copy_file()
|
||||
if os.path.exists(file.abs_src_path):
|
||||
file.copy_file()
|
||||
|
||||
# Reconcile concurrent jobs for the last time, so the plugins following
|
||||
# in the build process always have a consistent state to work with
|
||||
|
||||
@@ -200,9 +200,11 @@ class PrivacyPlugin(BasePlugin[PrivacyConfig]):
|
||||
self._patch, file
|
||||
))
|
||||
|
||||
# Otherwise just copy external asset to output directory
|
||||
# Otherwise just copy external asset to output directory if it
|
||||
# exists, i.e., if the download succeeded
|
||||
else:
|
||||
file.copy_file()
|
||||
if os.path.exists(file.abs_src_path):
|
||||
file.copy_file()
|
||||
|
||||
# Reconcile concurrent jobs for the last time, so the plugins following
|
||||
# in the build process always have a consistent state to work with
|
||||
|
||||
Reference in New Issue
Block a user