Skip to content

Commit

Permalink
More explicit coverage ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 6, 2017
1 parent 75a7201 commit 9a5b37e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ exclude_lines = def hug
sys.stdout.buffer.write
class Socket
pragma: no cover
except UnicodeDecodeError:
2 changes: 1 addition & 1 deletion hug/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def call(method, api_or_module, url, body='', headers=None, params=None, query_s
response.data = data.decode('utf8')
except UnicodeDecodeError:
response.data = data
except (UnicodeDecodeError, AttributeError):
except (UnicodeDecodeError, AttributeError): # pragma: no cover
response.data = result[0]
response.content_type = response.headers_dict['content-type']
if response.content_type == 'application/json':
Expand Down

0 comments on commit 9a5b37e

Please sign in to comment.