# HG changeset patch # User TK Soh # Date 1131572408 28800 # Node ID 0d47bb8843300d497297f4da04a4d426bb67dc00 # Parent fdda77dcf601b4ce2f549b8df2c13dae9a43f5ba hgweb: fix traceback by skipping invalid repo paths diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- 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