Skip to content

Commit

Permalink
Exclude some lines from coverage report.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishbah Razzaque committed Nov 30, 2015
1 parent bbdcc67 commit b960605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staticgen/staticgen_views.py
Expand Up @@ -44,7 +44,7 @@ def _get_context_data(self, response):

def _get_paginator(self, url):
response = self.client.get(url)
if not response.status_code == HTTP_200_OK:
if not response.status_code == HTTP_200_OK: # pragma: no cover
message = _('Error retrieving: {url} - Code: {code}').format(
url=url, code=response.status_code)
self.log_error(message)
Expand All @@ -53,7 +53,7 @@ def _get_paginator(self, url):
if context_data:
try:
return context_data['paginator'], context_data['is_paginated']
except KeyError:
except KeyError: # pragma: no cover
pass
return None, False

Expand Down

0 comments on commit b960605

Please sign in to comment.