Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 6, 2017
1 parent 9a5b37e commit fe16c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hug/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def call(method, api_or_module, url, body='', headers=None, params=None, query_s
data = data.getvalue()
try:
response.data = data.decode('utf8')
except UnicodeDecodeError:
except UnicodeDecodeError: # pragma: no cover
response.data = data
except (UnicodeDecodeError, AttributeError): # pragma: no cover
except (UnicodeDecodeError, AttributeError):
response.data = result[0]
response.content_type = response.headers_dict['content-type']
if response.content_type == 'application/json':
Expand Down

0 comments on commit fe16c47

Please sign in to comment.