Skip to content

Commit

Permalink
Pep8 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoMarques29 committed Aug 31, 2017
1 parent 0ab3d7b commit 44908f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_statsd/middleware.py
Expand Up @@ -175,7 +175,8 @@ def process_view(self, request, view_func, view_args, view_kwargs):
self.view_name = 'view' + MAKE_TAGS_LIKE + self.view_name

def process_response(self, request, response):
self.scope.counter_codes.increment(str(response.status_code // 100) + 'xx')
self.scope.counter_codes.increment(
str(response.status_code // 100) + 'xx')
self.scope.counter_codes.submit('http_codes')

if settings.STATSD_TRACK_MIDDLEWARE:
Expand All @@ -195,7 +196,6 @@ def process_response(self, request, response):
method += '_ajax'
if getattr(self, 'view_name', None):
self.stop(method, self.view_name)

self.cleanup(request)
return response

Expand Down

0 comments on commit 44908f8

Please sign in to comment.