**Not ready to merge tomorrow.** If the export fails, cron still reports success and nobody finds out. The job also writes customer emails to the logs. Both are quick fixes, but they need to land first. I read only `export_job.py`, not `test_export_job.py`. The test comments below come from the module docstring, which says the tests cover the CSV header and one row.

## Must fix before merge

1. **Failures are swallowed** (`export_job.py:56-57`). `run()` catches every exception, logs one line, and exits 0.
   - Example: the finance endpoint returns a 500. The job logs "export failed", cron sees success, and finance never gets yesterday's invoices. Nothing alerts anyone.
   - It also logs only `str(error)`, with no traceback.
   - Fix: use `log.exception(...)` and re-raise, or call `sys.exit(1)`, so cron's failure alerting fires.

2. **Customer emails go into the logs** (`export_job.py:52`). It logs `[row[1] for row in rows]`, which is every customer's email address, every night. Log only the count and the date.

3. **The upload has no timeout** (`export_job.py:42`). `requests.post` without `timeout=` can hang forever if the endpoint stalls. The 02:00 job would then sit there with the DB connection open and no failure signal. Add a timeout, for example `timeout=30`.

## Should fix (can be follow-ups if you name them as debt)

4. **Money is converted with float division** (`export_job.py:37`). `amount_cents / 100` is wrong for currencies that don't have two decimal places. A JPY invoice of 500 would export as 5.0 instead of 500, and a KWD amount (three decimals) would be off by a factor of ten. Use `Decimal` with a per-currency exponent, or export `amount_cents` unchanged and let finance divide.

5. **"Yesterday" is ambiguous** (`export_job.py:47`). `date.today()` uses the server's local timezone. The query compares a plain date against `paid_at`, which the database interprets in its own session timezone. If the two differ, invoices paid near midnight land in the wrong day's file. Pick one timezone (probably UTC) and apply it in both places.

6. **Reruns are not safe.** The file is overwritten on a rerun, but the upload is sent again with no idempotency key. If finance's endpoint doesn't deduplicate, a manual retry duplicates the day. Either confirm the endpoint deduplicates or document that reruns need coordination.

7. **`FINANCE_UPLOAD_URL` is read at import time** (`export_job.py:16`). Importing the module without that variable set raises `KeyError`, which makes testing awkward. Read it inside `run()` and pass it into `upload`.

8. **Test coverage is thin.** The docstring says the tests cover the CSV header and one row. These are untested:
   - an empty day (header-only file)
   - `fetch_invoices` date bounds
   - an upload error status
   - the failure path in `run()`, which would have caught issue 1

   Once you fix issue 1, add a test that `run()` fails loudly.

9. **Smaller points:**
   - `logging` is never configured under `__main__`, so the `log.info` lines are dropped.
   - `EXPORT_DIR` is hardcoded.
   - A half-written CSV is left on disk if writing fails.

VERDICT: NOT READY
