We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d4ecb commit 7b9ac9aCopy full SHA for 7b9ac9a
1 file changed
cosu.lua
@@ -253,7 +253,7 @@ function update(event, ...)
253
--[[ Check updates ]]
254
if http then
255
local gitAPI=http.get(sGithub.api)
256
- if gitAPI.getResponseCode()==200 then
+ if gitAPI and gitAPI.getResponseCode()==200 then
257
local tGitContent = textutils.unserialiseJSON(gitAPI.readAll())
258
if tGitContent.tag_name ~= sVersion then
259
gitAPI.close()
0 commit comments