**Not ready to merge tomorrow, but the blockers are small.** As written, the job can fail every night without anyone finding out. It also writes customer emails into the logs. Both are quick fixes. I only read the code. I haven't run it or `test_export_job.py`, and I have no spec beyond the docstring. I judged it against "nightly export of yesterday's paid invoices to finance".

## Must fix before merge

**1. Failures are swallowed, so finance gets no file and nobody is told** (high, `export_job.py:56-57`)
- `except Exception` logs one line and then returns normally, so cron sees exit code 0.
- Example: the finance endpoint returns a 500. `raise_for_status()` raises, the job logs "export failed: 500 Server Error…" and exits successfully. Expected: a non-zero exit so cron mail or monitoring fires.
- `log.error` also drops the traceback, so you can't tell where it failed.
- Fix: use `log.exception(...)` and re-raise, or call `sys.exit(1)`.

**2. Customer emails are written to the logs** (high, `export_job.py:52`)
- `[row[1] for row in rows]` logs every customer's email at INFO, every night. That is personal data in log storage, and the count already tells you what you need.
- Fix: log only `len(rows)` and the day.

**3. The upload has no timeout** (medium, `export_job.py:42`)
- `requests.post` with no `timeout` can hang indefinitely if the endpoint stalls. The 02:00 run would then sit there, and the next night's run could overlap it.
- Fix: add `timeout=30`, or whatever suits the file size.

**4. Test coverage is too thin** (medium, docstring line 3)
- The only tests cover "CSV header and one row". Nothing covers:
  - an empty day
  - the day-boundary query (`paid_at` exactly at midnight)
  - an upload failure
  - the failure path from #1
- Your standards call for happy path plus important failure cases. Once #1 is fixed, a test for it is the most valuable one to add.

## Should fix, can follow shortly after

**5. Amounts go through float division** (medium, `export_job.py:37`)
- `amount_cents / 100` gives `10.0` for 1000 cents but `19.99` for 1999. Finance may be parsing these columns.
- It is also wrong for currencies without two decimal places. JPY 500 would export as `5.0`.
- Fix: use `Decimal` with the currency's exponent. Whether you have non-2-decimal currencies is a question for you.

**6. The module crashes on import if the env var is missing** (low, `export_job.py:16`)
- `os.environ["FINANCE_UPLOAD_URL"]` runs at import time, so tests must set it before importing. Read it inside `run()` instead.

**7. Logging is never configured** (low)
- There is no `basicConfig`, so the INFO lines probably don't appear under cron. Only the error line does, via Python's fallback handler. Configure logging in the `__main__` block.

## Speculative, so please check rather than assume

- **Timezone.** `date.today()` uses the server's local time. If `paid_at` is `timestamptz`, the "yesterday" window depends on the database session timezone. A mismatch would shift invoices between days. I can't tell from this file.
- **Spreadsheet formulas.** An email starting with `=` or `+` would be read as a formula if finance opens the CSV in Excel. This is unlikely for emails but cheap to guard against.
- **Empty days.** On a day with no invoices, the job uploads a header-only file. That may be right or wrong depending on what finance expects.
- **Upload authentication.** There is none. That may be handled by the URL itself.

## What's good

The code is small and the functions are well separated, which makes the fixes easy. The query is parameterised, the half-open date window is correct, the connection is closed in `finally`, and `newline=""` is used for the CSV.

Items 1 to 3 plus a failure-path test are a short change, so merging tomorrow is realistic if you do those today.

VERDICT: NOT READY
