comparison MoinMoin/app.py @ 135:75312c9b94e3

use except...as syntax, use raise Exception(...) syntax, fix some imports
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 20 Mar 2011 02:31:24 +0100
parents 901bd4e1861e
children 9cc75ad9d6d1
comparison
equal deleted inserted replaced
134:901bd4e1861e 135:75312c9b94e3
277 277
278 flaskg.unprotected_storage = app.unprotected_storage 278 flaskg.unprotected_storage = app.unprotected_storage
279 279
280 try: 280 try:
281 flaskg.user = setup_user() 281 flaskg.user = setup_user()
282 except HTTPException, e: 282 except HTTPException as e:
283 # this makes stuff like abort(redirect(...)) work 283 # this makes stuff like abort(redirect(...)) work
284 return app.handle_http_exception(e) 284 return app.handle_http_exception(e)
285 285
286 flaskg.dicts = app.cfg.dicts() 286 flaskg.dicts = app.cfg.dicts()
287 flaskg.groups = app.cfg.groups() 287 flaskg.groups = app.cfg.groups()