Skip to content

Commit

Permalink
Fix traceback.format_exception parameter.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 584505471
  • Loading branch information
chongkong authored and tfx-copybara committed Nov 22, 2023
1 parent 61a384b commit 1ddf04f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
"""TaskGenerator implementation for async pipelines."""

import sys
import traceback
from typing import Callable, List, Optional

Expand Down Expand Up @@ -345,10 +346,10 @@ def _generate_tasks_for_node(
pipeline=self._pipeline,
skip_errors=[exceptions.InsufficientInputError],
)
except exceptions.InputResolutionError as e:
except exceptions.InputResolutionError:
error_msg = (
f'failure to resolve inputs; node uid: {node_uid}; '
f'error: {traceback.format_exception(e, limit=0)}'
f'error: {traceback.format_exception(*sys.exc_info(), limit=0)}'
)
if backfill_token:
logging.exception(
Expand Down

0 comments on commit 1ddf04f

Please sign in to comment.