diff --git a/powerline_shell/segments/hg.py b/powerline_shell/segments/hg.py index be784355..9d7b55a8 100644 --- a/powerline_shell/segments/hg.py +++ b/powerline_shell/segments/hg.py @@ -48,6 +48,9 @@ def build_stats(): class Segment(ThreadedSegment): + def __init__(self): + self.stats, self.branch = None, None + def run(self): self.stats, self.branch = build_stats()