**Not ready to merge tomorrow.** `export_job.py` hides failures, so a broken export would look like a successful one. It also writes customer emails to the logs. I only read the file. I didn't run it, and I didn't open `test_export_job.py`. The test comments below rely on the file's docstring, which says that test covers only "CSV header and one row".

## High (fix before merge)

1. **Failures are swallowed (lines 56-57).** `run()` catches every exception, logs one line, and exits 0. If the database is down or the upload returns a 500, cron sees success and finance silently gets no file.
   - Example: the upload endpoint returns 503. The log gets `export failed: 503 ...`, the exit code is 0, nothing alerts, and yesterday's invoices never reach finance.
   - Fix: use `log.exception` and re-raise (or `sys.exit(1)`), so cron or monitoring sees the failure.
2. **Customer emails are logged (line 52).** Every run writes the full list of customer emails to the logs, which is personal data in a place it shouldn't be. Log the count and the date only.
3. **No timeout on the upload (line 42).** `requests.post` has no timeout by default. A hung endpoint blocks the 02:00 job forever, and the next night's run piles up behind it.

## Medium

4. **Amounts are floats (line 37).** `amount_cents / 100` writes `20.0` for 2000 cents instead of `20.00`. Finance usually expects exactly two decimals. Use `Decimal(amount_cents) / 100` and format it to two places.
5. **Day boundaries depend on timezone (lines 28 and 47).** `date.today()` uses the server's timezone, and `paid_at` may be stored as a timestamp with or without a timezone. If the server is UTC and the database is not, invoices paid near midnight land in the wrong day's file or are missed. Decide on one timezone and make it explicit.
6. **No handling for a re-run or a half-finished run.** A partial failure leaves a file on disk, and a re-run overwrites it and uploads again. If the endpoint doesn't deduplicate, finance gets the file twice. Confirm how the endpoint treats a second upload of the same date.
7. **Test coverage is thin.** The docstring says the test covers only the header and one row. Nothing covers an empty day, the day boundaries, the upload failing, or the exit code on failure. Add tests for the fixes above, ideally before making them.

## Low

8. **`UPLOAD_URL` is read at import (line 16).** Importing the module without `FINANCE_UPLOAD_URL` set raises `KeyError`, which makes testing awkward. Read it inside `run()` or pass it in.
9. **The exported file contains customer emails with default permissions and is never cleaned up.** Create it with mode 0600, or delete it after a successful upload.
10. **Spreadsheet formula risk.** An email beginning with `=`, `+`, `-` or `@` could be run as a formula when finance opens the CSV in Excel. Prefix such values with `'`.
11. **Logging is never configured.** There is no `basicConfig`, so under cron the `info` lines are dropped and only errors reach stderr.
12. **`EXPORT_DIR` is hardcoded to `/var/exports`.** Make it configurable.

## Suggested path to tomorrow

Items 1-3 are small changes. Items 4 and 5 are quick too, once you've confirmed the timezone and the endpoint's duplicate behavior. Do those five with tests, and the rest can be tracked as follow-ups. That is realistic by tomorrow, but not with the file as it stands.

VERDICT: NOT READY
