mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
Show 404 page on illegal domain
This commit is contained in:
@@ -11,6 +11,7 @@ sys.path.append('erpnext')
|
|||||||
import webnotes
|
import webnotes
|
||||||
import webnotes.handler
|
import webnotes.handler
|
||||||
import webnotes.auth
|
import webnotes.auth
|
||||||
|
import webnotes.defs
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
# make the form_dict
|
# make the form_dict
|
||||||
@@ -23,6 +24,8 @@ def init():
|
|||||||
webnotes.http_request = webnotes.auth.HTTPRequest()
|
webnotes.http_request = webnotes.auth.HTTPRequest()
|
||||||
except webnotes.AuthenticationError, e:
|
except webnotes.AuthenticationError, e:
|
||||||
pass
|
pass
|
||||||
|
except webnotes.defs.IllegalDomainException, e:
|
||||||
|
print "Location: " + (webnotes.defs.redirect_404)
|
||||||
|
|
||||||
def respond():
|
def respond():
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|||||||
Reference in New Issue
Block a user