{"action":"closed","issue":{"url":"https://api.github.com/repos/rochacbruno/python-pagseguro/issues/48","repository_url":"https://api.github.com/repos/rochacbruno/python-pagseguro","labels_url":"https://api.github.com/repos/rochacbruno/python-pagseguro/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/rochacbruno/python-pagseguro/issues/48/comments","events_url":"https://api.github.com/repos/rochacbruno/python-pagseguro/issues/48/events","html_url":"https://github.com/rochacbruno/python-pagseguro/issues/48","id":181762703,"number":48,"title":"AttributeError 'dict' object has no attribute 'PAYMENT_URL'","user":{"login":"gileno","id":223948,"avatar_url":"https://avatars.githubusercontent.com/u/223948?v=3","gravatar_id":"","url":"https://api.github.com/users/gileno","html_url":"https://github.com/gileno","followers_url":"https://api.github.com/users/gileno/followers","following_url":"https://api.github.com/users/gileno/following{/other_user}","gists_url":"https://api.github.com/users/gileno/gists{/gist_id}","starred_url":"https://api.github.com/users/gileno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gileno/subscriptions","organizations_url":"https://api.github.com/users/gileno/orgs","repos_url":"https://api.github.com/users/gileno/repos","events_url":"https://api.github.com/users/gileno/events{/privacy}","received_events_url":"https://api.github.com/users/gileno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T20:39:12Z","updated_at":"2016-10-08T00:15:50Z","closed_at":"2016-10-08T00:15:50Z","body":"No trecho de código:\r\n\r\n```\r\nclass XMLParser(object):\r\n    def __init__(self, xml, config=None):\r\n        self.xml = xml\r\n        self.errors = None\r\n        self.config = config or {}\r\n        self.parse_xml(xml)\r\n        logger.debug(self.__dict__)\r\n\r\n```\r\n\r\nSe o \"config\" passado para o Parser não tiver alterações ou apenas for sandbox=True, o dict será vazio então no Parser não terá uma instância de Config, terá um dict vazio e irá gerar erro na classe PagSeguroCheckoutResponse quando for necessário pegar a url de pagamento (PAYMENT_URL).\r\n\r\nEstou gerando pull request com uma possível solução"}}
{"actor":{"display_login":"rochacbruno"}}