form bugfix and otehr minor fixes
diff --git a/index.cgi b/index.cgi
index d618250..686ce05 100755
--- a/index.cgi
+++ b/index.cgi
@@ -24,7 +24,7 @@
 		webnotes.http_request = webnotes.auth.HTTPRequest()
 	except webnotes.AuthenticationError, e:
 		pass
-	except webnotes.defs.IllegalDomainException, e:
+	except webnotes.UnknownDomainError, e:
 		print "Location: " + (webnotes.defs.redirect_404)
 
 def respond():