# HG changeset patch # User TK Soh # Date 1131572408 28800 # Node ID 0d47bb8843300d497297f4da04a4d426bb67dc00 # Parent fdda77dcf601b4ce2f549b8df2c13dae9a43f5ba hgweb: fix traceback by skipping invalid repo paths diff -r fdda77dcf601 -r 0d47bb884330 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