diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/storage/mod_storage.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/storage/mod_storage.lua b/plugins/storage/mod_storage.lua index e22de82c..e9f5f923 100644 --- a/plugins/storage/mod_storage.lua +++ b/plugins/storage/mod_storage.lua @@ -5,7 +5,7 @@ local cache = { data = {} }; function cache:get(key) return self.data[key]; end function cache:set(key, val) self.data[key] = val; return val; end -local DBI = require "DBI"; +local _,DBI = pcall(require, "DBI"); function get_database(driver, db, ...) local uri = "dbi:"..driver..":"..db; return cache:get(uri) or cache:set(uri, (function(...) |