)]}'
{"pankoclient/exceptions.py":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"4484226f58a5f6f6a9170dc7b648318878b9c16b","unresolved":false,"context_lines":[{"line_number":175,"context_line":"            err \u003d body.get(\u0027error_message\u0027, {})"},{"line_number":176,"context_line":"            try:"},{"line_number":177,"context_line":"                desc \u003d err.get(\u0027faultstring\u0027)"},{"line_number":178,"context_line":"            except AttributeError:"},{"line_number":179,"context_line":"                desc \u003d err"},{"line_number":180,"context_line":"            for enhanced_cls in enhanced_classes:"},{"line_number":181,"context_line":"                if enhanced_cls.match.match(desc):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_21f2409b","line":178,"updated":"2018-05-15 02:13:38.000000000","message":"this won\u0027t raise an AttributeError.","commit_id":"cb452900fa868a468adf0d4470608427c1cc3d08"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"0d0168b8e19ebb6550da88f369089c439f564ad8","unresolved":false,"context_lines":[{"line_number":175,"context_line":"            err \u003d body.get(\u0027error_message\u0027, {})"},{"line_number":176,"context_line":"            try:"},{"line_number":177,"context_line":"                desc \u003d err.get(\u0027faultstring\u0027)"},{"line_number":178,"context_line":"            except AttributeError:"},{"line_number":179,"context_line":"                desc \u003d err"},{"line_number":180,"context_line":"            for enhanced_cls in enhanced_classes:"},{"line_number":181,"context_line":"                if enhanced_cls.match.match(desc):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_ca084193","line":178,"in_reply_to":"5f7c97a3_21f2409b","updated":"2018-05-15 06:03:08.000000000","message":"it will raise AttriuteError when body[\u0027error_message\u0027] is a string, not a dict. This happens when the entity returning the error is not Panko API but an Apache/Haproxy/etc server having its own issues.  \n\n  Python 3.6.3 (default, Oct  3 2017, 21:45:48) \n  Type \u0027copyright\u0027, \u0027credits\u0027 or \u0027license\u0027 for more \n  information\n  IPython 6.2.1 -- An enhanced Interactive Python. Type \u0027?\u0027 \n  for help.\n  \n  In [1]: s \u003d \u0027fooo\u0027\n  \n  In [2]: s.get(\u0027faultstring\u0027)\n  ---------------------------------------------------------------------------\n  AttributeError                            Traceback (most recent call last)\n  \u003cipython-input-2-edd4be19fe3b\u003e in \u003cmodule\u003e()\n----\u003e 1 s.get(\u0027faultstring\u0027)\n\n  AttributeError: \u0027str\u0027 object has no attribute \u0027get\u0027","commit_id":"cb452900fa868a468adf0d4470608427c1cc3d08"}]}
