Skip to content

Commit

Permalink
Check return code instead of stderr output
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed Oct 14, 2021
1 parent a4ed660 commit ccfa86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerline_taskwarrior/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def execute(self, command):
if err:
self.pl.debug("Command errors: %s" % err.strip(string.whitespace))

return out.splitlines(), err.splitlines()
return out.splitlines(), proc.returncode != 0

def build_segments(self):
self.pl.debug("Nothing to do")
Expand Down

0 comments on commit ccfa86a

Please sign in to comment.