Better error message when a wrong 'parameters' argument is passed to session.execute

Description

It is a common mistake that when executing a query that needs a single parameter to bind, the user does not pass it in a list:

This results in an unclear error message:

We could catch this exception and propagate it with a more useful message.

Environment

None

Pull Requests

None

Assignee

Unassigned

Reporter

Alan Boudreault

Fix versions

None

Labels

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Priority

Minor
Configure