Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1523:fdda77dcf601 | 1524:0d47bb884330 |
---|---|
997 | 997 |
998 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) | 998 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) |
999 .replace("//", "/")) | 999 .replace("//", "/")) |
1000 | 1000 |
1001 # update time with local timezone | 1001 # update time with local timezone |
1002 d = (get_mtime(path), util.makedate()[1]) | 1002 try: |
1003 d = (get_mtime(path), util.makedate()[1]) | |
1004 except OSError: | |
1005 continue | |
1003 | 1006 |
1004 yield dict(contact=(get("ui", "username") or # preferred | 1007 yield dict(contact=(get("ui", "username") or # preferred |
1005 get("web", "contact") or # deprecated | 1008 get("web", "contact") or # deprecated |
1006 get("web", "author", "unknown")), # also | 1009 get("web", "author", "unknown")), # also |
1007 name=get("web", "name", name), | 1010 name=get("web", "name", name), |