hgweb: fix traceback by skipping invalid repo paths
authorTK Soh <teekaysoh@yahoo.com>
Wed, 09 Nov 2005 13:40:08 -0800
changeset 1524 0d47bb884330
parent 1523 fdda77dcf601
child 1525 c85e5bbfd141
hgweb: fix traceback by skipping invalid repo paths
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Wed Nov 09 13:39:56 2005 -0800
+++ b/mercurial/hgweb.py	Wed Nov 09 13:40:08 2005 -0800
@@ -999,7 +999,10 @@
                        .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