From ccfa86ab961f20d73c09a62a6a99b0c49ec799c7 Mon Sep 17 00:00:00 2001 From: German Lashevich Date: Thu, 14 Oct 2021 11:17:18 +0200 Subject: [PATCH] Check return code instead of stderr output --- powerline_taskwarrior/segments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline_taskwarrior/segments.py b/powerline_taskwarrior/segments.py index 43b1fad..1101d8c 100644 --- a/powerline_taskwarrior/segments.py +++ b/powerline_taskwarrior/segments.py @@ -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")