Skip to content

Commit 9c53d21

Browse files
Problem is project endpoint now
1 parent 622489d commit 9c53d21

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tidy3d/web/api/container.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ def _check_path_dir(path: str) -> None:
4646
"""Make sure local output directory exists and create it if not."""
4747

4848
@staticmethod
49-
def _check_folder(folder_name: str, projects_endpoint: str = "tidy3d/projects") -> None:
49+
def _check_folder(
50+
folder_name: str,
51+
projects_endpoint: str = "tidy3d/projects",
52+
project_endpoint: str = "tidy3d/project",
53+
) -> None:
5054
"""Make sure ``folder_name`` exists on the web UI and create it if not."""
51-
Folder.get(folder_name, create=True, projects_endpoint=projects_endpoint)
55+
Folder.get(
56+
folder_name,
57+
create=True,
58+
projects_endpoint=projects_endpoint,
59+
project_endpoint=project_endpoint,
60+
)
5261

5362

5463
class Job(WebContainer):

0 commit comments

Comments
 (0)