Skip to content

Commit

Permalink
standard exceptions live in different places in Python 2 and Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Aug 8, 2016
1 parent 6e68313 commit 2c7a04f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ZEO/asyncio/client.py
Expand Up @@ -303,6 +303,8 @@ def create_MultipleUndoErrors(class_, args):
exc_classes = {
'builtins.KeyError': KeyError,
'builtins.TypeError': TypeError,
'exceptions.KeyError': KeyError,
'exceptions.TypeError': TypeError,
'ZODB.POSException.ConflictError': ZODB.POSException.ConflictError,
'ZODB.POSException.POSKeyError': ZODB.POSException.POSKeyError,
'ZODB.POSException.ReadConflictError': ZODB.POSException.ReadConflictError,
Expand All @@ -313,6 +315,8 @@ def create_MultipleUndoErrors(class_, args):
exc_factories = {
'builtins.KeyError': create_Exception,
'builtins.TypeError': create_Exception,
'exceptions.KeyError': create_Exception,
'exceptions.TypeError': create_Exception,
'ZODB.POSException.BTreesConflictError': create_BTreesConflictError,
'ZODB.POSException.ConflictError': create_ConflictError,
'ZODB.POSException.MultipleUndoErrors': create_MultipleUndoErrors,
Expand Down

0 comments on commit 2c7a04f

Please sign in to comment.