Skip to content

Commit

Permalink
Fix error log (#2349)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Jun 22, 2016
1 parent 278514b commit a564fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def file(self, request, fil, mimetype=None):
mimetype = mimetypes.guess_type(fil)[0]

try:
fil = open(fil)
fil = open(fil, mode='br')
except IOError:
raise NotFound()

Expand Down
2 changes: 1 addition & 1 deletion tests/components/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_api_get_components(self):

def test_api_get_error_log(self):
"""Test the return of the error log."""
test_content = 'Test String'
test_content = 'Test String°'
with tempfile.NamedTemporaryFile() as log:
log.write(test_content.encode('utf-8'))
log.flush()
Expand Down

0 comments on commit a564fe8

Please sign in to comment.