diff options
Diffstat (limited to 'xc.lua')
| -rw-r--r-- | xc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ function mt:get(path, params) capture_stdout = true, playback_only = false, }) - if res.status == 0 then + if res and res.status == 0 then return res.stdout end end @@ -103,7 +103,7 @@ json.dump( capture_stdout = true, playback_only = false, }) - if res.status == 0 then + if res and res.status == 0 then return mp_utils.parse_json(res.stdout) end end |
