else:
try:
error = cherrypy.request.headers['EXTERNAL_AUTH_ERROR']
except KeyError:
error = "Unknown error using external authentication"
cherrypy.log.error("Error: %s" % error)
else:
try:
error = cherrypy.request.headers['EXTERNAL_AUTH_ERROR']
except KeyError:
error = "Unknown error using external authentication"
cherrypy.log.error("Error: %s" % error)