def print_tb(response):
    from traceback import format_list
    try:
        response = response.json
        print response['message']
        print
        print '\n'.join(format_list(response['detail']['traceback']))
    except (__HOLE__, KeyError):
        pass  # don't care
dataset/ETHPy150Open ahri/flask-snooze/tests/test_snooze_sqlalchemyendpoint.py/print_tb