Skip to content

Commit

Permalink
Fixes issue where pre-providing an answer on a machine with only one …
Browse files Browse the repository at this point in the history
…platform will throw a RuntimeError.
  • Loading branch information
mitchellallison committed Jan 5, 2015
1 parent 2960fa1 commit 7daa805
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyopencl/__init__.py
Expand Up @@ -818,8 +818,6 @@ def get_input(prompt):

if not platforms:
raise Error("no platforms found")
elif len(platforms) == 1:
platform, = platforms
else:
if not answers:
cc_print("Choose platform:")
Expand Down

0 comments on commit 7daa805

Please sign in to comment.