Invite to organization causes Internal Server error

When trying to invite someone to an organization (on master.ckan.org and beta.ckan.org) I add the email address and click the button, but then get an Internal Server error page.  Presumably the stack trace got mailed to somebody.