mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-02 01:44:40 +00:00
Fix bug in subdomain verification
When there is verification error and "reason" is present, no reply was returned to client causing django exception: ValueError: The view pyi2phosts.postkey.views.subdomain didn't return an HttpResponse object.
This commit is contained in:
parent
6ac3284396
commit
6045b31350
@ -133,10 +133,10 @@ def subdomain(request):
|
||||
elif hasattr(e, 'code'):
|
||||
log.warning('%s can\'t finish the request, error code: %s',
|
||||
request.session['topdomain'], e.code)
|
||||
return render_to_response('subdomain_http_verify_failure.html', {
|
||||
'title': settings.SITE_NAME,
|
||||
'code': e.code,
|
||||
}, context_instance=RequestContext(request))
|
||||
return render_to_response('subdomain_http_verify_failure.html', {
|
||||
'title': settings.SITE_NAME,
|
||||
'code': e.code,
|
||||
}, context_instance=RequestContext(request))
|
||||
else:
|
||||
log.debug('subdomain verification success, saving host')
|
||||
s = save_host(request)
|
||||
|
Loading…
x
Reference in New Issue
Block a user