mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
Exit code 112 should be ignored same as 102
This commit is contained in:
parent
54e6772a80
commit
0744d7209b
@ -571,12 +571,12 @@ class SendHeartbeatsThread(threading.Thread):
|
|||||||
process = Popen(cmd, stdin=stdin, stdout=PIPE, stderr=STDOUT)
|
process = Popen(cmd, stdin=stdin, stdout=PIPE, stderr=STDOUT)
|
||||||
output, _err = process.communicate(input=inp)
|
output, _err = process.communicate(input=inp)
|
||||||
retcode = process.poll()
|
retcode = process.poll()
|
||||||
if (not retcode or retcode == 102) and not output:
|
if (not retcode or retcode == 102 or retcode == 112) and not output:
|
||||||
self.sent()
|
self.sent()
|
||||||
else:
|
else:
|
||||||
update_status_bar('Error')
|
update_status_bar('Error')
|
||||||
if retcode:
|
if retcode:
|
||||||
log(DEBUG if retcode == 102 else ERROR, 'wakatime-core exited with status: {0}'.format(retcode))
|
log(DEBUG if retcode == 102 or retcode == 112 else ERROR, 'wakatime-core exited with status: {0}'.format(retcode))
|
||||||
if output:
|
if output:
|
||||||
log(ERROR, u('wakatime-core output: {0}').format(output))
|
log(ERROR, u('wakatime-core output: {0}').format(output))
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user