Make the error message a little more obvious what happened

parent 46d77f98
...@@ -117,8 +117,8 @@ class ComparatorManager(object): ...@@ -117,8 +117,8 @@ class ComparatorManager(object):
except ImportError: except ImportError:
if idx < len(xs) - 1: if idx < len(xs) - 1:
continue continue
raise ImportError("Could not import {}{}".format( raise ImportError("Could not import {}: {}".format(
"any of" if len(xs) > 1 else '', "any of comparators" if len(xs) > 1 else 'comparator',
', '.join(xs) ', '.join(xs)
)) ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment