We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22d08bd commit b4f7007Copy full SHA for b4f7007
1 file changed
WDoc/utils/misc.py
@@ -304,9 +304,7 @@ def file_hasher(doc: dict) -> str:
304
if "path" in doc and doc["path"] and Path(doc["path"]).exists():
305
hashable = True
306
if isinstance(doc["path"], str):
307
- if doc["path"] == "":
308
- hashable = False
309
- if not doc["path"].strip():
+ if doc["path"] == "" or (not doc["path"].strip()):
310
hashable = False
311
if not doc["path"]:
312
0 commit comments