mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
reddit_base: Fix incorrect "abort" import.
This was causing the fancy abort(SomeExceptionClass) style aborts to fail because the pylons abort function didn't support that.
This commit is contained in:
@@ -38,14 +38,14 @@ import babel.core
|
||||
|
||||
from mako.filters import url_escape
|
||||
from pylons import c, g, request, response
|
||||
from pylons.controllers.util import abort, redirect_to
|
||||
from pylons.controllers.util import redirect_to
|
||||
from pylons.i18n import _
|
||||
from pylons.i18n.translation import LanguageError
|
||||
|
||||
from r2.config.extensions import is_api
|
||||
from r2.lib import filters, pages, utils
|
||||
from r2.lib.authentication import authenticate_user
|
||||
from r2.lib.base import BaseController
|
||||
from r2.lib.base import BaseController, abort
|
||||
from r2.lib.cache import make_key, MemcachedError
|
||||
from r2.lib.errors import (
|
||||
ErrorSet,
|
||||
|
||||
Reference in New Issue
Block a user