Merge branch 'master' of ssh://git.onelab.eu/git/myslice
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 23 Oct 2013 08:06:57 +0000 (11:06 +0300)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 23 Oct 2013 08:06:57 +0000 (11:06 +0300)
myslice/myslice.ini.localhost [moved from myslice/myslice.ini with 100% similarity]
unfold/loginrequired.py

index 0f46ff7..ebe33d5 100644 (file)
@@ -32,7 +32,9 @@ def logout_on_manifold_exception (fun_that_returns_httpresponse):
         except ManifoldException, manifold_result:
             # xxx we need a means to display this message to user...
             from django.contrib.auth import logout
-            logout(request)
+            # in some unusual cases, this might fail
+            try: logout(request)
+            except: pass
             return HttpResponseRedirect ('/')
         except Exception, e:
             # xxx we need to sugarcoat this error message in some error template...