Fix crash when discovery fails

See #574
This commit is contained in:
Markus Unterwaditzer 2017-03-02 22:00:05 +01:00
parent b722e5aec5
commit 4027e077e7

View file

@ -207,6 +207,7 @@ def _print_collections(instance_name, get_discovered):
logger.debug(''.join(traceback.format_tb(sys.exc_info()[2])))
logger.warning('Failed to discover collections for {}, use `-vdebug` '
'to see the full traceback.'.format(instance_name))
return
logger.info('{}:'.format(instance_name))
for args in discovered.values():
collection = args['collection']