mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
Use .has_option to avoid the unknown Exception.
This commit is contained in:
parent
e7d03166de
commit
19c2c58ce2
@ -945,12 +945,12 @@ class hgwebdir:
|
||||
virtual = virtual.strip('/')
|
||||
|
||||
if len(virtual):
|
||||
try:
|
||||
if self.cp.has_option("paths", virtual):
|
||||
real = self.cp.get("paths", virtual)
|
||||
h = hgweb(real)
|
||||
h.run()
|
||||
return
|
||||
except:
|
||||
else:
|
||||
httpnotfound(virtual)
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user