mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unittest - exit code may be None if process failed to finish
This commit is contained in:
parent
5f50c44041
commit
04f5f7e2a8
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class Task(object):
|
|||
merge_streams=merge_streams, env=self.env)
|
||||
|
||||
# output[0] is the exit code
|
||||
if output[0] == 0:
|
||||
if output[0] == 0 or output[0] is None:
|
||||
raise CommandError(command, *output)
|
||||
|
||||
return output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue