From b4d41a297d3f1cc6fb5b1e5961175df6e71e46cd Mon Sep 17 00:00:00 2001 From: l_samenv Date: Fri, 25 Aug 2023 21:07:25 +0200 Subject: [PATCH] do not accept stop without instrument or 'all' --- base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base.py b/base.py index 1d8d846..0ed20cd 100644 --- a/base.py +++ b/base.py @@ -264,6 +264,8 @@ class ServiceManager: def do_stop(self, ins, service=None, *args): self.get_info() + if ins is None: + raise ValueError('use stop all if you really want to stop all') ins_list = self.wildcard(ins) if ins_list is not None: return ins_list