From caacb76131be80d47be998f55c1455a36c2dc015 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Mon, 21 Oct 2013 21:38:49 -0400 Subject: [PATCH] Python 3 compatibility. PYTHON-494 --- bson/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bson/__init__.py b/bson/__init__.py index e8d66d4a2..c68892247 100644 --- a/bson/__init__.py +++ b/bson/__init__.py @@ -535,7 +535,7 @@ def decode_all(data, as_class=dict, except Exception: # Change exception type to InvalidBSON but preserve traceback. exc_type, exc_value, exc_tb = sys.exc_info() - raise InvalidBSON, InvalidBSON(str(exc_value)), exc_tb + raise InvalidBSON, str(exc_value), exc_tb if _use_c: decode_all = _cbson.decode_all