Commits

Martin von Löwis  committed 84d43e2

Issue 3521663: ignore error when readme is a broken symlink.

  • Participants
  • Parent commits 10ed631

Comments (0)

Files changed (1)

File description_utils.py

                 continue
             # grab the content and parse if it's something we might understand,
             # based on the file extension
-            text = tar.extractfile(entry).read()
+            try:
+                text = tar.extractfile(entry).read()
+            except:
+                # issue 3521663: extraction may fail if entry is a symlink to
+                # a non-existing file
+                continue
             if ext in ('txt', 'rst', 'md'):
                 html = processDescription(text)
             return text, html