From 3eed6bb8ff0fc2c6761064c63f9aadc23c8db4aa Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 14 Apr 2021 11:07:38 -0700 Subject: [PATCH] Check for None before checking DRC tool --- compiler/base/lef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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