Skip to content

Commit

Permalink
Allow disabling rich tracebacks via env var
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Grätz <fabiogratz@googlemail.com>
  • Loading branch information
Fabio Grätz committed Jun 15, 2023
1 parent 207d019 commit 37b9039
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flytekit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
SourceCode
"""
import os
import sys
from typing import Generator

Expand Down Expand Up @@ -303,4 +304,5 @@ def load_implicit_plugins():
load_implicit_plugins()

# Pretty-print exception messages
traceback.install(width=None, extra_lines=0)
if os.environ.get("FLYTE_SDK_RICH_TRACEBACKS") != "0":
traceback.install(width=None, extra_lines=0)

0 comments on commit 37b9039

Please sign in to comment.