From 8e95fa22a2272be78c3f49340f62a39b9d267146 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 03:54:43 +0100 Subject: [PATCH] chain cannot be empty --- src/add/iocontrol.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/add/iocontrol.py b/src/add/iocontrol.py index 6c78cee1..03de3c43 100644 --- a/src/add/iocontrol.py +++ b/src/add/iocontrol.py @@ -410,7 +410,6 @@ class StageChain(StageCls): return _spec(self.chain[-1].ospec, "chainout") def _specallocate_setup(self, m, i): - o = i # in case chain is empty for (idx, c) in enumerate(self.chain): if hasattr(c, "setup"): c.setup(m, i) # stage may have some module stuff @@ -425,7 +424,6 @@ class StageChain(StageCls): return o # last loop is the output def _noallocate_setup(self, m, i): - o = i # in case chain is empty for (idx, c) in enumerate(self.chain): if hasattr(c, "setup"): c.setup(m, i) # stage may have some module stuff -- 2.30.2