Skip to content

Commit 6e61efd

Browse files
committed
Use Py3.10 syntax
1 parent 90516bc commit 6e61efd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sdks/python/apache_beam/runners/worker/sdk_worker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,7 @@ def discard(self, instruction_id, exception):
559559
"""
560560
processor = None
561561
with self._lock:
562-
tb_str = "".join(
563-
traceback.format_exception(
564-
type(exception), exception, exception.__traceback__))
562+
tb_str = "".join(traceback.format_exception(exception))
565563
if len(tb_str) > 10240:
566564
tb_str = (
567565
tb_str[:5000] + "\n... [traceback truncated] ...\n" +

0 commit comments

Comments
 (0)