Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-shields committed Aug 18, 2023
1 parent 7dae0d7 commit 7fc9003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
from uberjob._util.traceback import StackFrame


def _traceback_summary(traceback) -> list[str]:
def _traceback_summary(traceback):
result = []
while traceback is not None:
result.append(traceback.tb_frame.f_code.co_name)
traceback = traceback.tb_next
return result


def _exception_chain_traceback_summary(exception) -> list[list[str]]:
def _exception_chain_traceback_summary(exception):
result = []
while exception is not None:
result.append(_traceback_summary(exception.__traceback__))
Expand Down

0 comments on commit 7fc9003

Please sign in to comment.