Skip to content

Commit d6c2a86

Browse files
committed
Make jog more forgiving
This should be reversed at some point.
1 parent d7651cc commit d6c2a86

File tree

1 file changed

+4
-2
lines changed
  • src/resources/filters/modules

1 file changed

+4
-2
lines changed

src/resources/filters/modules/jog.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ local function run_filter_function (fn, element, context)
3131
return element
3232
end
3333

34-
local result, continue = fn(element, context)
35-
if result == nil then
34+
local ok, result, continue = pcall(fn, element, context)
35+
if ok == false then
36+
return element
37+
elseif result == nil then
3638
return element, continue
3739
else
3840
return result, continue

0 commit comments

Comments
 (0)