diff mercurial/hgweb.py @ 1524:0d47bb884330

hgweb: fix traceback by skipping invalid repo paths
author TK Soh <teekaysoh@yahoo.com>
date Wed, 09 Nov 2005 13:40:08 -0800
parents a91bfbbe88d3
children bf4e7ef08741
line wrap: on
line diff
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -999,7 +999,10 @@ class hgwebdir:
                        .replace("//", "/"))
 
                 # update time with local timezone
-                d = (get_mtime(path), util.makedate()[1])
+                try:
+                    d = (get_mtime(path), util.makedate()[1])
+                except OSError:
+                    continue
 
                 yield dict(contact=(get("ui", "username") or # preferred
                                     get("web", "contact") or # deprecated