Browse Source

[Minor] Add fail-safety

tags/3.8.1
Vsevolod Stakhov 3 months ago
parent
commit
04f6599ad7
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/lua_redis.lua

+ 1
- 1
lualib/lua_redis.lua View File

@@ -1290,7 +1290,7 @@ local function add_redis_script(script, redis_params, caller_level, maybe_filena
if not caller_level then
caller_level = 2
end
local caller = debug.getinfo(caller_level)
local caller = debug.getinfo(caller_level) or debug.getinfo(caller_level - 1) or E

local new_script = {
caller = caller,

Loading…
Cancel
Save