{"action":"closed","issue":{"url":"https://api.github.com/repos/Polyconseil/getconf/issues/21","repository_url":"https://api.github.com/repos/Polyconseil/getconf","labels_url":"https://api.github.com/repos/Polyconseil/getconf/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Polyconseil/getconf/issues/21/comments","events_url":"https://api.github.com/repos/Polyconseil/getconf/issues/21/events","html_url":"https://github.com/Polyconseil/getconf/issues/21","id":160411593,"number":21,"title":"AssetionError if default is set for get and getstr method","user":{"login":"vividvilla","id":715529,"avatar_url":"https://avatars.githubusercontent.com/u/715529?v=3","gravatar_id":"","url":"https://api.github.com/users/vividvilla","html_url":"https://github.com/vividvilla","followers_url":"https://api.github.com/users/vividvilla/followers","following_url":"https://api.github.com/users/vividvilla/following{/other_user}","gists_url":"https://api.github.com/users/vividvilla/gists{/gist_id}","starred_url":"https://api.github.com/users/vividvilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vividvilla/subscriptions","organizations_url":"https://api.github.com/users/vividvilla/orgs","repos_url":"https://api.github.com/users/vividvilla/repos","events_url":"https://api.github.com/users/vividvilla/events{/privacy}","received_events_url":"https://api.github.com/users/vividvilla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rbarrois","id":694541,"avatar_url":"https://avatars.githubusercontent.com/u/694541?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarrois","html_url":"https://github.com/rbarrois","followers_url":"https://api.github.com/users/rbarrois/followers","following_url":"https://api.github.com/users/rbarrois/following{/other_user}","gists_url":"https://api.github.com/users/rbarrois/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarrois/subscriptions","organizations_url":"https://api.github.com/users/rbarrois/orgs","repos_url":"https://api.github.com/users/rbarrois/repos","events_url":"https://api.github.com/users/rbarrois/events{/privacy}","received_events_url":"https://api.github.com/users/rbarrois/received_events","type":"User","site_admin":false},"assignees":[{"login":"rbarrois","id":694541,"avatar_url":"https://avatars.githubusercontent.com/u/694541?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarrois","html_url":"https://github.com/rbarrois","followers_url":"https://api.github.com/users/rbarrois/followers","following_url":"https://api.github.com/users/rbarrois/following{/other_user}","gists_url":"https://api.github.com/users/rbarrois/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarrois/subscriptions","organizations_url":"https://api.github.com/users/rbarrois/orgs","repos_url":"https://api.github.com/users/rbarrois/repos","events_url":"https://api.github.com/users/rbarrois/events{/privacy}","received_events_url":"https://api.github.com/users/rbarrois/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-06-15T12:37:14Z","updated_at":"2016-12-13T12:47:37Z","closed_at":"2016-12-13T12:47:37Z","body":"Getting `AssertionError` If I set default value for `get` and `getstr` methods. \n\n```\nTraceback (most recent call last):\n  File \"test.py\", line 5, in <module>\n    print config.get('DEBUG', 'ABC')\n  File \"/Users/vivek/zerodha/test/getconf/getconf/base.py\", line 206, in get\n    ), 'get(\"%s\", %s) has an invalid default value type.' % (key, repr(default))\nAssertionError: get(\"DEBUG\", 'ABC') has an invalid default value type.\n```\n\nI am using python 2.7.10 and here is my system info\n\n`sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)`\n\nIt works on Python 3. seems unicode issue\n"}}
{"actor":{"display_login":"vividvilla"}}