d5f390f55c
Check explicitly for the cases where no "sql_connection" attribute was set when running _start(), so that the lack of this parameter is documented by the exception rather than failing into create_engine() with an unclear failure mode. If _start() fails as it will here, make sure _started stays False so that repeated calls to _start() continue to raise the same exception, rather than raising attribute errors. When accessing the "session" or "connection" attributes of the context when these attributes were not requested by the decorator or context manager, raise explicit exceptions for each, rather than returning None which leads to hard-to-debug NoneType errors. Change-Id: Iadfbf4707daed4140285a3a472009f6863b18275 Closes-bug: 1477080 |
||
---|---|---|
.. | ||
compat | ||
migration_cli | ||
__init__.py | ||
enginefacade.py | ||
engines.py | ||
exc_filters.py | ||
migration.py | ||
models.py | ||
orm.py | ||
provision.py | ||
session.py | ||
test_base.py | ||
test_migrations.py | ||
update_match.py | ||
utils.py |