Skip to content

Commit 9a6e146

Browse files
committed
🐛 fix: check if main_version_location exists
1 parent a2d2d94 commit 9a6e146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nonebot_plugin_orm/migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _init_version_locations(self) -> None:
285285
else:
286286
version_locations = reversed(version_locations)
287287

288-
if main_version_location:
288+
if main_version_location and main_version_location.exists():
289289
version_locations = chain(
290290
filter(methodcaller("is_dir"), main_version_location.iterdir()),
291291
version_locations,

0 commit comments

Comments
 (0)