# HG changeset patch # User Kim Alvefur # Date 1641337584 -3600 # Node ID 5001104f0275d108b1262a1a274c8d3a25e15ac3 # Parent a280878c4ef216b4615f096754055073bbc04549 Back out ad7767a9f3ea Turns out it does error on 0.11 because it tries to compare a number with the string "max" Thanks Marcel diff -r a280878c4ef2 -r 5001104f0275 mod_bookmarks2/mod_bookmarks2.lua --- a/mod_bookmarks2/mod_bookmarks2.lua Tue Jan 04 23:22:31 2022 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Wed Jan 05 00:06:24 2022 +0100 @@ -20,7 +20,7 @@ ["access_model"] = "whitelist"; }; -if not mod_pep.check_node_config(nil, nil, default_options) then +if not pcall(mod_pep.check_node_config, nil, nil, default_options) then -- 0.11 or earlier not supporting max_items="max" trows an error here module:log("debug", "Setting max_items=pep_max_items because 'max' is not supported in this version"); default_options["max_items"] = module:get_option_number("pep_max_items", 256);