← Catalogue

python_traceback

An uncaught Python exception. The exception type and message are on the traceback's last line; the frames above show where it was raised.

pythonruntimetoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/python_traceback

matchers/python/python_traceback/matcher.yaml

id: python_tracebackrole: toolclassification: [python, runtime]description: An uncaught Python exception. The exception type and message are on the traceback's last line; the frames above show where it was raised.pattern: '^\s*Traceback \(most recent call last\):'before: 1after: 25

In bundles

allpython

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

python_tracebackOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: python_traceback
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run pip install -e . --quiet
35pip install -e . --quiet
36python -m etl.run --config config/prod.yml
37shell: /usr/bin/bash -e {0}
38##[endgroup]
39Successfully installed etl-2.1.0
402026-01-05 09:14:02 INFO etl.run: loading config from config/prod.yml
412026-01-05 09:14:02 INFO etl.run: connecting to warehouse
422026-01-05 09:14:03 INFO etl.extract: pulled 12,481 rows from orders
432026-01-05 09:14:04 INFO etl.transform: applying fx conversion
44Traceback (most recent call last):
45 File "/usr/local/lib/python3.12/runpy.py", line 198, in _run_module_as_main
46 return _run_code(code, main_globals, None,
47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 File "/builds/team/etl/etl/run.py", line 61, in <module>
49 main()
50 File "/builds/team/etl/etl/run.py", line 44, in main
51 totals = transform(rows, rate=cfg["fx"]["rate"])
52 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53 File "/builds/team/etl/etl/transform.py", line 88, in transform
54 return [r.amount / rate for r in rows]
55 ~~~~~~~~~^~~~~~
56ZeroDivisionError: float division by zero
57##[error]Process completed with exit code 1.
58##[group]Post Run actions/checkout@v4
59##[endgroup]
60/usr/bin/git version
61git version 2.54.0
62##[group]Post Run actions/upload-artifact@v4
63##[endgroup]
64Artifact upload complete.
65##[warning]out/totals.parquet: no matching files. Ensure that the artifact path is relative to the working directory
66Post job cleanup.
67Cleaning up orphan processes