Skip to content

rake 'get_clues[n,m]' fails with error #51

Description

@cvessey-upei

When you attempt to get_clues, you get an error:

NoMethodError: undefined method `captures' for nil:NilClass

	  			var_answer = answermatch.captures[0].to_s
	  			                        ^^^^^^^^^

This is because the answermatch might be nil. I fixed it by placing that into an if block checking for nil answermatch and skipping if not - and then it works - but it doesn't.

Now it doesn't make ANY clues. It correctly gets categories, but never gets a single clue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions