diff options
-rw-r--r-- | astroid/protocols.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index c51464d..7c9e4b9 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -143,9 +143,10 @@ def _multiply_seq_by_int(self, other, context): node = self.__class__() elts = [] for elt in self.elts: - infered = next(elt.infer(context)) - if not infered is util.YES: - elts.append(infered) + infered = helpers.safe_infer(elt, context) + if infered is None: + infered = util.YES + elts.append(infered) node.elts = elts * other.value return node |