mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
patch fix
This commit is contained in:
10
index.cgi
10
index.cgi
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user