From 4a0d0a08db20fe64fa0dceb08d157cce1cfaa026 Mon Sep 17 00:00:00 2001 From: ichuang Date: Wed, 1 Aug 2012 23:37:35 -0400 Subject: [PATCH] minor change so that SSL code doesn't interfere with non-nginx instances --- common/djangoapps/external_auth/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/external_auth/views.py b/common/djangoapps/external_auth/views.py index 5004d614d5..41062735d4 100644 --- a/common/djangoapps/external_auth/views.py +++ b/common/djangoapps/external_auth/views.py @@ -194,7 +194,10 @@ def edXauth_ssl_login(request): if not cert: cert = request.META.get('HTTP_'+certkey,'') if not cert: - cert = request._req.subprocess_env.get(certkey,'') # try the direct apache2 SSL key + try: + cert = request._req.subprocess_env.get(certkey,'') # try the direct apache2 SSL key + except Exception as err: + pass if not cert: # no certificate information - go onward to main index return student_views.main_index()