From 8900c567d909595f0074aac4a2f644a5535e122b Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Wed, 10 Jan 2018 08:33:12 +0100 Subject: [PATCH] [core] Fixes bug in graph.add_chain output that would ignore the first node when its index is 0. --- bonobo/structs/graphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonobo/structs/graphs.py b/bonobo/structs/graphs.py index 39de1fe..58b78a6 100644 --- a/bonobo/structs/graphs.py +++ b/bonobo/structs/graphs.py @@ -64,7 +64,7 @@ class Graph: if _name in self.named: raise KeyError('Duplicate name {!r} in graph.'.format(_name)) self.named[_name] = _last - if not _first: + if _first is None: _first = _last self.outputs_of(_input, create=True).add(_last) _input = _last