diff --git a/swh/scheduler/cli.py b/swh/scheduler/cli.py --- a/swh/scheduler/cli.py +++ b/swh/scheduler/cli.py @@ -119,7 +119,7 @@ logger.debug('Instanciating scheduler %s with %s' % ( cls, override_config)) scheduler = get_scheduler(cls, args=override_config) - except Exception: + except ValueError: # it's the subcommand to decide whether not having a proper # scheduler instance is a problem. pass