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

codeclimate

parent 02b2ea5e
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,8 @@ 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):
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]}
else:
self.mapping = dict(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