diff --git a/stream/exceptions.py b/stream/exceptions.py index 58d8753..64b1c4b 100644 --- a/stream/exceptions.py +++ b/stream/exceptions.py @@ -86,5 +86,8 @@ def get_exceptions(): def get_exception_dict(): classes = get_exceptions() - exception_dict = {c.code: c for c in classes} + exception_dict = {} + for c in classes: + exception_dict[c.code] = c + # exception_dict = {c.code: c for c in classes} return exception_dict