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 a2d2d94 commit 9a6e146Copy full SHA for 9a6e146
nonebot_plugin_orm/migrate.py
@@ -285,7 +285,7 @@ def _init_version_locations(self) -> None:
285
else:
286
version_locations = reversed(version_locations)
287
288
- if main_version_location:
+ if main_version_location and main_version_location.exists():
289
version_locations = chain(
290
filter(methodcaller("is_dir"), main_version_location.iterdir()),
291
version_locations,
0 commit comments