Commit 9fa3cbea authored by Arnaud Fontaine's avatar Arnaud Fontaine

Raise properly LoginError exception.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45983 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40958dea
......@@ -702,7 +702,10 @@ class MainForm(Form):
self.submit()
if 'Logged In as' not in self.browser.contents:
raise LoginError
raise LoginError("%s: Could not log in as '%s:%s'" % \
(self.browser._erp5_base_url,
self.browser._username,
self.browser._password))
self.browser._is_logged_in = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment