Not ready to merge tomorrow. Two things have to change first: a failed export looks like a success, and every customer's email address gets written to the logs. The tests the docstring mentions also aren't here.

## Blockers

**1. Failures are hidden from cron** (`export_job.py:56-57`)
The `except Exception` logs the error and then the script exits with code 0. Say the finance endpoint returns a 500 or the database is down: cron sees a successful run, finance gets no file, and no one is alerted. It should log the error and then re-raise it (or call `sys.exit(1)`), so the job exits non-zero.

**2. Customer emails are written to the logs** (`export_job.py:52`)
`[row[1] for row in rows]` logs every customer email at INFO level every night. That's personal data going into log storage, which usually has wider access and longer retention than the database. Log the count and the date only.

**3. The tests don't exist**
The docstring says the file is "Tested by test_export_job.py", but there's no such file in this folder. Even if it's somewhere else, one header-and-row test isn't enough. Before merging I'd want tests for:
- the date window passed to the query
- amount formatting (see 4 below)
- a failed upload making `run()` raise
- a day with no invoices still producing a CSV with just the header

`UPLOAD_URL` is read from the environment when the module is imported (`:16`), so the module can't even be imported in a test without that variable set. Read it inside `upload()` or `run()` instead.

## Should fix before merge

**4. Amounts are floats** (`:37`)
`amount_cents / 100` turns `100` into `1.0`, not `1.00`, and `1000000` into `10000.0`. For currencies with no minor unit, like JPY, dividing by 100 gives the wrong amount. Use `Decimal(amount_cents) / 100` with a fixed two-decimal format, and look up the decimal places per currency if JPY-style currencies can appear.

**5. No timeout on the upload** (`:42`)
`requests.post` has no `timeout`. If the endpoint hangs, the job hangs with it, and tonight's run can still be stuck when tomorrow's starts. Add something like `timeout=60`.

**6. Which "yesterday" you get depends on the server's timezone** (`:47`, `:28`)
`date.today()` uses the server's local timezone, and if `paid_at` is a `timestamptz` column, Postgres compares it using the database session's timezone. If those two differ, the export window is shifted. Example: with the server on UTC and finance working in US Eastern time, invoices paid between 7pm and midnight Eastern land in the wrong day's file. Choose one timezone explicitly and use it for both the date and the query bounds.

**7. Logging is never configured**
`__main__` doesn't call `logging.basicConfig`, so the INFO lines are dropped. Only the error line reaches stderr, through Python's fallback handler.

## Nice to have
- Accept an optional date argument so a missed day can be re-run without editing code.
- The overall structure is good: separate fetch, write and upload functions, a parameterised query, and the connection closed in `finally`. These fixes stay within that structure.

Fixes 1, 2 and 5 are a few lines each. Fix 3, the tests, is where most of the remaining work is.

VERDICT: NOT READY
