call and publish only with keyword arguments

This commit is contained in:
Emmanuel Garette 2020-03-18 09:55:05 +01:00
parent 9d1e72cdd8
commit f9a344e7a6
1 changed files with 2 additions and 2 deletions

View File

@ -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,