do not crash if the ressourcepath is empty

travis
Raphaël Vinot 2015-03-20 09:35:12 +01:00
parent c2889239ad
commit 7320aecb7f
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ def get_urls(url, depth=1):
base += ':{}'.format(port)
if not meta_redir_url.startswith('/'):
# relative redirect. resource_path has the initial '/'
base += fex.get_resource_path()
if fex.get_resource_path() is not None:
base += fex.get_resource_path()
if not base.endswith('/'):
base += '/'
meta_redir_url = base + meta_redir_url