)]}'
{"neutron/db/api.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"680adb62d9dbbe0e270f1bdf6273754a78a59042","unresolved":false,"context_lines":[{"line_number":38,"context_line":"def is_deadlock_or_stale(e):"},{"line_number":39,"context_line":"    if isnestedinstance(e, (db_exc.DBDeadlock, exc.StaleDataError)):"},{"line_number":40,"context_line":"        return True"},{"line_number":41,"context_line":"    if isnestedinstance(e, db_exc.DBError) and \u00271305\u0027 in str(e):"},{"line_number":42,"context_line":"        # looking for mangled savepoints. see bug/1590298 for details."},{"line_number":43,"context_line":"        return True"},{"line_number":44,"context_line":"    return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_fca2dcac","line":41,"updated":"2016-06-08 11:36:39.000000000","message":"from what I see in [1] that you referenced in the bug, the SAWarning keeps track of the original exception that then causes the savepoint error. Is there any way we can get the SAWarning and process that?\n\n[1] https://bitbucket.org/zzzeek/sqlalchemy/issues/2696/misleading-exception-triggered-on","commit_id":"35b3322e06a7d2814ccdfe15d56a7fbc120b32a6"},{"author":{"_account_id":11816,"name":"mike bayer","display_name":"Mike Bayer","email":"mike_mp@zzzcomputing.com","username":"zzzeek","status":"Red Hat"},"change_message_id":"68727b2ae1eb28da7962ddce69a1ea413bd45873","unresolved":false,"context_lines":[{"line_number":38,"context_line":"def is_deadlock_or_stale(e):"},{"line_number":39,"context_line":"    if isnestedinstance(e, (db_exc.DBDeadlock, exc.StaleDataError)):"},{"line_number":40,"context_line":"        return True"},{"line_number":41,"context_line":"    if isnestedinstance(e, db_exc.DBError) and \u00271305\u0027 in str(e):"},{"line_number":42,"context_line":"        # looking for mangled savepoints. see bug/1590298 for details."},{"line_number":43,"context_line":"        return True"},{"line_number":44,"context_line":"    return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_34f1f46b","line":41,"in_reply_to":"7aa08908_fca2dcac","updated":"2016-06-08 21:07:16.000000000","message":"you absolutely can achieve this using the warnings filter to catch the warning which we emit here as an exception: https://bitbucket.org/zzzeek/sqlalchemy/commits/7a7483c0cf2f#Llib/sqlalchemy/util/langhelpers.pyT65","commit_id":"35b3322e06a7d2814ccdfe15d56a7fbc120b32a6"},{"author":{"_account_id":14611,"name":"dasm","display_name":"dasm","email":"dsmigiel@redhat.com","username":"dasm"},"change_message_id":"ae46c9d7394d00157d2d8a69b1503f0dea0e36b3","unresolved":false,"context_lines":[{"line_number":38,"context_line":"def is_deadlock_or_stale(e):"},{"line_number":39,"context_line":"    if isnestedinstance(e, (db_exc.DBDeadlock, exc.StaleDataError)):"},{"line_number":40,"context_line":"        return True"},{"line_number":41,"context_line":"    if isnestedinstance(e, db_exc.DBError) and \u00271305\u0027 in str(e):"},{"line_number":42,"context_line":"        # looking for mangled savepoints. see bug/1590298 for details."},{"line_number":43,"context_line":"        return True"},{"line_number":44,"context_line":"    return False"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"retry_db_errors \u003d oslo_db_api.wrap_db_retry("}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_f92e55a3","line":44,"range":{"start_line":41,"start_character":0,"end_line":44,"end_character":16},"updated":"2016-06-08 16:28:20.000000000","message":"from readability PoV please change it to more pythonic construct:\n\n return isnestedinstance(...)","commit_id":"35b3322e06a7d2814ccdfe15d56a7fbc120b32a6"}]}
