Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Aug 12, 2024
1 parent 89e61cc commit d9561cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion flytekit/bin/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_traceback_str(e: Exception) -> str:
format_str = "Traceback (most recent call last):\n" "\n {traceback}\n" "\n" "Message:\n" "\n" " {message}"

value = e.value if isinstance(e, FlyteUserRuntimeException) else e
return format_str.format(traceback=tb_str, message=f"{type(value)}: {value}")
return format_str.format(traceback=tb_str, message=f"{type(value).__name__}: {value}")


def get_one_of(*args) -> str:
Expand Down
1 change: 0 additions & 1 deletion flytekit/exceptions/scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def verbose_message(self):

lines = _format_tb(top_tb, limit=limit)
lines = [line.rstrip() for line in lines]
lines = "\n".join(lines).split("\n")
traceback_str = "\n ".join([""] + lines)

format_str = "Traceback (most recent call last):\n" "{traceback}\n" "\n" "Message:\n" "\n" " {message}"
Expand Down

0 comments on commit d9561cd

Please sign in to comment.