Skip to content

Commit 103d500

Browse files
authored
[AddonManager] fix test failing
1 parent c574f33 commit 103d500

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addonmanager_installation_manifest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def most_recent_update(directory_path: str) -> datetime.datetime:
3838

3939
if not path.exists():
4040
raise FileNotFoundError(f"Directory not found: {path}")
41+
if not path.is_dir():
42+
raise NotADirectoryError(f"Path is not a directory: {path}")
4143

4244
latest_time = datetime.datetime.fromtimestamp(0, tz=datetime.timezone.utc)
4345
for file_path in path.rglob("*"):

0 commit comments

Comments
 (0)