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

https://github.com/koreader/koreader/issues/9197#issuecomment-1153129147
reviewable/pr9204/r1
Martín Fernández 2 years ago committed by GitHub
parent 0f238c3179
commit 2213e6410f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save