[plugin] Exporter: fix crash on joplin when token is invalid (#9203)

https://github.com/koreader/koreader/issues/9197#issuecomment-1153129147
This commit is contained in:
Martín Fernández authored and GitHub committed 2022-06-12 13:12:26 +02:00
1 parent 0f238c3179
commit 2213e6410f
1 file changed
+1
@@ -124,6 +124,7 @@ function JoplinExporter:notebookExist(title)
local response, err = makeRequest(url, "GET")
if not response then
logger.warn("Joplin notebookExist error", err)
return false
end
if not response.items or type(response.items) ~= "table" then