Skip to content

Commit ef06a21

Browse files
committed
🐛 fix(alembic): ignore non-exsitent main migrations dir
1 parent d1e5101 commit ef06a21

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
@@ -274,7 +274,7 @@ def _init_version_locations(self) -> None:
274274
version_locations[main_version_location] = ""
275275

276276
for src, dst in version_locations.items():
277-
with suppress(FileNotFoundError):
277+
with suppress(FileNotFoundError, shutil.Error):
278278
shutil.copytree(src, self._temp_dir / dst, dirs_exist_ok=True)
279279

280280
pathsep = _SPLIT_ON_PATH[self.get_main_option("version_path_separator")]

0 commit comments

Comments
 (0)