diff --git a/modules/rest_api.py b/modules/rest_api.py index 85a5fc68..7355c039 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -110,7 +110,7 @@ class Module(ModuleManager.BaseModule): if self.httpd: self.httpd.shutdown() - @utils.hook("received.command.apikey", private_only=True) + @utils.hook("received.command.apikey", private_only=True, min_args=1) def api_key(self, event): """ :help: Generate a new API key