changeset 4596:ea636cd71757

using public werkzeug api: rather use abort(x) than raise _ProxyException(x)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 17 Feb 2009 22:33:04 +0100
parents 59728f08e040
children 790e2dc06e9b
files MoinMoin/auth/http.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/http.py	Tue Feb 17 12:53:59 2009 +0100
+++ b/MoinMoin/auth/http.py	Tue Feb 17 22:33:04 2009 +0100
@@ -85,10 +85,10 @@
 
         if not u or not u.valid:
             from werkzeug import Response
-            from werkzeug.exceptions import _ProxyException
+            from werkzeug.exceptions import abort
             response = Response(_('Please log in first.'), 401,
                                 {'WWW-Authenticate': 'Basic realm="%s"' % self.realm})
-            raise _ProxyException(response)
+            abort(response)
 
         if u and self.autocreate:
             u.create_or_update()