This should just be `pool = default_pool(…)` and then you don't need the `if not pool:` dance down below.