Commit 82c3c0fe authored by Jim Fulton's avatar Jim Fulton

Be more flexible about arguments.

parent cc673003
...@@ -161,11 +161,11 @@ class ReadConflictError(ConflictError): ...@@ -161,11 +161,11 @@ class ReadConflictError(ConflictError):
An attempt was made to read an object that has changed in another An attempt was made to read an object that has changed in another
transaction (eg. another thread or process). transaction (eg. another thread or process).
""" """
def __init__(self, message=None, object=None, serials=None): def __init__(self, message=None, object=None, serials=None, **kw):
if message is None: if message is None:
message = "database read conflict error" message = "database read conflict error"
ConflictError.__init__(self, message=message, object=object, ConflictError.__init__(self, message=message, object=object,
serials=serials) serials=serials, **kw)
class BTreesConflictError(ConflictError): class BTreesConflictError(ConflictError):
"""A special subclass for BTrees conflict errors.""" """A special subclass for BTrees conflict errors."""
......
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