Commit d7677f0f authored by Jim Fulton's avatar Jim Fulton

Added a sanity check to avoid registration of objects without a

manager. (Perhaps this should be an assert.)
parent 0cd245a0
......@@ -240,6 +240,8 @@ class Transaction(object):
# commit protocol.
manager = getattr(obj, "_p_jar", obj)
if manager is None:
raise ValueError("Register with no manager")
adapter = self._adapters.get(manager)
if adapter is None:
if myhasattr(manager, "commit_sub"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment