diff --git a/redis/commands.py b/redis/commands.py index eb7cea54f6..e4e6344eb9 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -2842,7 +2842,7 @@ def script_flush(self, sync_type="SYNC"): See: https://redis.io/commands/script-flush """ if sync_type not in ["SYNC", "ASYNC"]: - raise DataError("SCRIPT FLUSH defaults to SYNC or" + raise DataError("SCRIPT FLUSH defaults to SYNC or " "accepts SYNC/ASYNC") pieces = [sync_type] return self.execute_command('SCRIPT FLUSH', *pieces) @@ -3136,9 +3136,7 @@ def module_load(self, path, *args): Passes all ``*args`` to the module, during loading. Raises ``ModuleError`` if a module is not found at ``path``. """ - pieces = list(args) - pieces.insert(0, path) - return self.execute_command('MODULE LOAD', *pieces) + return self.execute_command('MODULE LOAD', path, *args) def module_unload(self, name): """