patch fix

This commit is contained in:
Rushabh Mehta
2012-02-06 10:58:48 +01:00
parent 594a0ca11d
commit 4167e2f97a
2 changed files with 12 additions and 4 deletions

View File

@@ -19,7 +19,13 @@ def init():
webnotes.form_dict[key] = webnotes.form.getvalue(key)
# init request
webnotes.http_request = webnotes.auth.HTTPRequest()
try:
webnotes.http_request = webnotes.auth.HTTPRequest()
except Exception, e:
if webnotes.response['message']=='Authentication Failed':
pass
else:
raise e
def respond():
import webnotes
@@ -34,4 +40,4 @@ def respond():
if __name__=="__main__":
init()
respond()
respond()