deb-python-oslo.db/doc/source
Mike Bayer d5f390f55c Improve failure mode handling in enginefacade
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
2015-07-27 19:02:41 +03:00
..
api Move files out of the namespace package 2014-12-24 13:28:48 +02:00
conf.py Merge "remove definitions of Python Source Code Encoding" 2014-07-30 14:05:17 +00:00
contributing.rst Fix the graduate.sh script result 2014-04-18 11:33:16 +03:00
history.rst Clean up documentation 2014-09-04 16:27:00 -04:00
index.rst Add pypi download + version badges 2015-04-07 14:47:07 -07:00
installation.rst Switch from MySQL-python to PyMySQL 2015-06-18 15:42:23 +03:00
usage.rst Improve failure mode handling in enginefacade 2015-07-27 19:02:41 +03:00