summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSAccount.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-27 23:47:47 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-27 23:47:47 +0200
commit95ed76d34290e08876dccce6840c3e09138a2047 (patch)
treed48fd62290c2683575071884ca1ea1c4874e91f3 /module/plugins/internal/XFSAccount.py
parent[ExtractArchive] Rename archive_password.txt -> passwords.txt (diff)
downloadpyload-95ed76d34290e08876dccce6840c3e09138a2047.tar.xz
Spare code fixes
Diffstat (limited to 'module/plugins/internal/XFSAccount.py')
-rw-r--r--module/plugins/internal/XFSAccount.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py
index 6d6cc97e7..93a04dc86 100644
--- a/module/plugins/internal/XFSAccount.py
+++ b/module/plugins/internal/XFSAccount.py
@@ -151,8 +151,8 @@ class XFSAccount(Account):
def login(self, user, password, data, req):
- if not self.HOSTER_URL: #@TODO: Remove in 0.4.10
- raise Exception(_("Missing HOSTER_DOMAIN"))
+ if not self.HOSTER_URL:
+ self.login_fail(_("Missing HOSTER_DOMAIN"))
if not self.LOGIN_URL:
self.LOGIN_URL = urlparse.urljoin(self.HOSTER_URL, "login.html")