{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/6895fa36a8420e8bd8c1bba353558e17?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6895fa36a8420e8bd8c1bba353558e17","url":"https://api.github.com/users/foresto","login":"foresto","id":322134},"milestone":null,"labels":[],"updated_at":"2011-11-04T22:38:43Z","assignee":null,"closed_at":"2011-11-04T14:27:56Z","comments":6,"url":"https://api.github.com/repos/braintree/braintree_python/issues/12","body":"While testing, I came across the following exception when calling Subscription.find(\"\"):\n\n    Traceback (most recent call last):\n      File \"<stdin>\", line 1, in <module>\n      File \"/usr/local/lib/python2.6/dist-packages/braintree/subscription.py\", line 109, in find\n        return Configuration.gateway().subscription.find(subscription_id)\n      File \"/usr/local/lib/python2.6/dist-packages/braintree/subscription_gateway.py\", line 33, in find\n        response = self.config.http().get(\"/subscriptions/\" + subscription_id)\n      File \"/usr/local/lib/python2.6/dist-packages/braintree/util/http.py\", line 47, in get\n        return self.__http_do(\"GET\", path)\n      File \"/usr/local/lib/python2.6/dist-packages/braintree/util/http.py\", line 70, in __http_do\n        Http.raise_exception_from_status(status)\n      File \"/usr/local/lib/python2.6/dist-packages/braintree/util/http.py\", line 34, in raise_exception_from_status\n        raise UnexpectedError(\"Unexpected HTTP_RESPONSE \" + str(status))\n    braintree.exceptions.unexpected_error.UnexpectedError: Unexpected HTTP_RESPONSE 405\n\nNot a big deal, since I don't expect to pass an empty string to find() in practice, but I thought you folks would like to know since it seems like the expected result would have been a NotFoundError.","html_url":"https://github.com/braintree/braintree_python/issues/12","title":"Subscription.find('') raises UnexpectedError","number":12,"id":326833,"created_at":"2010-09-21T18:59:13Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/dfe3aaef39e42a63c1ba51765339890b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"dfe3aaef39e42a63c1ba51765339890b","url":"https://api.github.com/users/cmonty","login":"cmonty","id":225319},"updated_at":"2011-11-04T22:38:43Z","url":"https://api.github.com/repos/braintree/braintree_python/issues/comments/2637425","body":"Sorry for the confusion! We recommend using a non-existent payment method token, not an empty string. If you use an empty string, we'll respond with `NotFoundError` without contacting our Gateway.","id":2637425,"created_at":"2011-11-04T22:38:43Z"}}