Check for None before checking DRC tool

This commit is contained in:
mrg 2021-04-14 11:07:38 -07:00
parent a730fd0f10
commit 3eed6bb8ff
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class lef:
def lef_write(self, lef_name):
""" Write the entire lef of the object to the file. """
if OPTS.drc_exe[0] == "magic":
if OPTS.drc_exe and OPTS.drc_exe[0] == "magic":
self.magic_lef_write(lef_name)
return