Skip to content

Commit

Permalink
Remove unused check in Computer.infer_keys()
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Apr 20, 2022
1 parent 3f9b31d commit 1dfd00b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions genno/core/computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1dfd00b

Please sign in to comment.