From 1dfd00bc89b219e4dc7f8a364791a45740d40b11 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Wed, 20 Apr 2022 14:11:53 +0200 Subject: [PATCH] Remove unused check in Computer.infer_keys() --- genno/core/computer.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/genno/core/computer.py b/genno/core/computer.py index 531c634e..5607204f 100644 --- a/genno/core/computer.py +++ b/genno/core/computer.py @@ -546,9 +546,6 @@ def infer_keys( result = list(map(partial(self.graph.infer, dims=dims), keys)) - if None in result: - raise KeyError(keys[result.index(None)]) - return result[0] if single else tuple(result) def __contains__(self, item):