Skip to content

Commit

Permalink
[RT-107] Show full traceback when an exception is raised (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
susodapop committed Nov 3, 2021
1 parent ba775a1 commit 1cc98c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redash_toolbelt/examples/migrate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"""
Author: Jesse Whitehouse
Last updated: 21 October 2021
Notes:
Copied from https://gist.github.com/arikfr/2c7d09f6837b256c58a3d3ef6a97f61a
"""


import sys, os, json, logging, textwrap, re
import sys, os, json, logging, textwrap, re, traceback
import click
from redash_toolbelt import Redash

Expand Down Expand Up @@ -1231,6 +1230,7 @@ def wrapped(*args, **kwargs):
func(*args, **kwargs)
except Exception as e:
print(e)
traceback.print_exc()
finally:
save_meta()

Expand Down

0 comments on commit 1cc98c0

Please sign in to comment.