Skip to content

Commit 0e5b0bf

Browse files
FIX: Import CAD with None value in control file (#6436)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent ebd0ebb commit 0e5b0bf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/changelog.d/6436.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Import cad with none value in control file

src/ansys/aedt/core/hfss3dlayout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ def _import_cad(
13731373
project_name = generate_unique_name(project_name)
13741374
aedb_path = aedb_path.replace(old_name, project_name)
13751375
self.logger.warning("aedb_exists. Renaming it to %s", project_name)
1376-
if not Path(xml_path):
1376+
if xml_path is None:
13771377
xml_path = Path("")
13781378
elif Path(xml_path).suffix == ".tech":
13791379
xml_path = Path(tech_to_control_file(xml_path))

0 commit comments

Comments
 (0)