Skip to content

Commit

Permalink
Removed spaceless middleware, fixed printed warning in startup proced…
Browse files Browse the repository at this point in the history
…ures

See: ASKBOT#897
  • Loading branch information
bendavis78 committed Oct 26, 2021
1 parent 5dbc7c4 commit cf25e7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions askbot/startup_procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def domain_is_bad():

def askbot_warning(line):
"""prints a warning with the nice header, but does not quit"""
print(str(line).encode('utf-8'), file=sys.stderr)
print(line, file=sys.stderr)


def print_errors(error_messages, header=None, footer=None):
Expand Down Expand Up @@ -164,8 +164,7 @@ def test_middleware():
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
# )
required_middleware.extend([
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware'
])
found_middleware = [x for x in django_settings.MIDDLEWARE
if x in required_middleware]
Expand Down

0 comments on commit cf25e7d

Please sign in to comment.