From f9a344e7a607c2877d825d8c2e2593633dac1c28 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 18 Mar 2020 09:55:05 +0100 Subject: [PATCH] call and publish only with keyword arguments --- src/risotto/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/risotto/controller.py b/src/risotto/controller.py index 663c5e5a..e85524bf 100644 --- a/src/risotto/controller.py +++ b/src/risotto/controller.py @@ -22,7 +22,7 @@ class Controller: version, module, message = uri.split('.', 2) uri = module + '.' + message if args: - raise ValueError(_(f'the URI "{uri}" can only be called with positionals arguments')) + raise ValueError(_(f'the URI "{uri}" can only be called with keyword arguments')) if module not in self.risotto_modules: return await remote.remove_call(module, version, @@ -42,7 +42,7 @@ class Controller: version, module, submessage = uri.split('.', 2) version, message = uri.split('.', 1) if args: - raise ValueError(_(f'the URI "{uri}" can only be published with positionals arguments')) + raise ValueError(_(f'the URI "{uri}" can only be published with keyword arguments')) if module not in self.risotto_modules: await remote.remove_call(module, version,