Skip to content

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

@cvessey-upei

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.

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