We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9e341 commit 86cde7bCopy full SHA for 86cde7b
1 file changed
mkdocs/structure/files.py
@@ -367,9 +367,15 @@ def get_files(config: MkDocsConfig) -> Files:
367
log.warning(
368
f"Excluding '{a.src_uri}' from the site because it conflicts with '{b.src_uri}'."
369
)
370
- files.remove(a)
+ try:
371
+ files.remove(a)
372
+ except ValueError:
373
+ pass # Catching this to avoid errors if attempting to remove the same file twice.
374
else:
- files.remove(b)
375
376
+ files.remove(b)
377
378
+ pass
379
380
return Files(files)
381
0 commit comments