Skip to content
Snippets Groups Projects
Commit e4186aae authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fixes #14

parent ec20e8db
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ class rethrow_as(object):
# You can also provide just two exceptions
if len(pairs) == 2 and not isinstance(pairs[1], (tuple, list)) \
and all(issubclass(p, BaseException) for p in pairs):
self.mapping = [(pairs[0], pairs[1])]
self.mapping = [pairs]
else:
self.mapping = list(pairs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment