From 58b51b7c8ee0b0bd22bf909f5a1988862f3aacdd Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Mon, 27 May 2024 15:25:13 -0400 Subject: [PATCH] fix existing directory error; closes #244, #246 --- hyperglass/frontend/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperglass/frontend/__init__.py b/hyperglass/frontend/__init__.py index 714884c..508700a 100644 --- a/hyperglass/frontend/__init__.py +++ b/hyperglass/frontend/__init__.py @@ -131,7 +131,7 @@ async def build_ui(app_path: Path): log.error(err) raise RuntimeError(str(err)) from err - shutil.copytree(out_dir, build_dir) + shutil.copytree(src=out_dir, dst=build_dir, dirs_exist_ok=True) log.bind(src=out_dir, dst=build_dir).debug("Migrated Next.JS build output") return "\n".join(all_messages)