Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Jan 10, 2024
1 parent 2d292da commit 53e1964
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openlane/config/pdk_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def process_sta(key: str):
lib = lib_raw.strip()
lib_list = ws.split(lib)
if new["PDK"].startswith("gf180mcu"):
lib_list = [l.replace("liberty", "lib") for l in lib_list]
lib_list = [file.replace("liberty", "lib") for file in lib_list]
first_lib = os.path.basename(lib_list[0])[:-4]
pvt = first_lib.split("__")[1]
if default_pvt == "":
Expand Down
4 changes: 4 additions & 0 deletions openlane/flows/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ def pdk_scl_cb(
pdk_family = family.name
break

if pdk_family is None:
err(f"Could not resolve the PDK '{ctx.params['pdk']}'.")
ctx.exit(1)

version = volare.fetch(
volare_home,
pdk_family,
Expand Down

0 comments on commit 53e1964

Please sign in to comment.