diff --git a/compiler/base/lef.py b/compiler/base/lef.py index 8ca4918b..a5c1910a 100644 --- a/compiler/base/lef.py +++ b/compiler/base/lef.py @@ -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