1. Christian Ebert
  2. muttils

Commits

Christian Ebert  committed c30b6ba

sigpager: do not collect empty signatures

  • Participants
  • Parent commits f54748d
  • Branches default

Comments (0)

Files changed (1)

File muttils/sigpager.py

View file
  • Ignore whitespace
         sl = [f for f in os.listdir(self.sdir) if f.endswith(self.tail)]
         if not sl:
             raise util.DeadMan('no signature files in %s' % self.sdir)
-        self.sigs = map(self.getstring, sl)
+        self.sigs = [sig for sig in map(self.getstring, sl) if sig]
         weed_re = None
         while True:
             reply = self.getsig(weed_re)