Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions redis/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
"""
Expand Down