mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 19:42:20 -05:00
Testing yet another possible fix for web_root
This commit is contained in:
parent
a103035ac2
commit
52f65ca735
@ -132,7 +132,8 @@ class HTTPRedirect(Exception):
|
||||
"""Exception raised when the request should be redirected."""
|
||||
|
||||
def __init__(self, url, permanent=False, status=None):
|
||||
self.url = urlparse.urljoin(sickbeard.WEB_ROOT, url)
|
||||
self.web_root = ('/' + sickbeard.WEB_ROOT.lstrip('/')) if sickbeard.WEB_ROOT else ''
|
||||
self.url = urlparse.urljoin(self.web_root, url)
|
||||
self.permanent = permanent
|
||||
self.status = status
|
||||
Exception.__init__(self, self.url, self.permanent, self.status)
|
||||
|
Loading…
Reference in New Issue
Block a user