1. Christian Ebert
  2. muttils

Commits

Christian Ebert  committed f54748d

sigpager: pass IOError when reading signature files

Covers both permissions and directories.

  • Participants
  • Parent commits e649e61
  • Branches default

Comments (0)

Files changed (1)

File muttils/sigpager.py

View file
 
     def getstring(self, fn):
         fn = os.path.join(self.sdir, fn)
-        if os.path.isfile(fn):
+        s = ''
+        try:
             f = open(fn)
             try:
                 s = f.read()
             finally:
                 f.close()
-            return s
+        except IOError:
+            pass
+        return s
 
     def getsig(self, weed_re=None):
         if weed_re: