Skip to content

Commit

Permalink
Merge pull request #69 from mitchellallison/master
Browse files Browse the repository at this point in the history
Fixes an issue where pre-providing an answer on a machine with only one platform will throw a RuntimeError.
  • Loading branch information
inducer committed Jan 5, 2015
2 parents 2960fa1 + 7daa805 commit 23c213e
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 23c213e

Please sign in to comment.