Skip to content

Commit

Permalink
Merge pull request #1 from adambiro1/feature/replace-emoji-face
Browse files Browse the repository at this point in the history
Replace the emoji in an error message
  • Loading branch information
adambiro1 committed Jul 9, 2023
2 parents a4db74b + 4f295ba commit afa6e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/page_tracker/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def index():
page_views = redis().incr("page_views")
except RedisError:
app.logger.exception("Redis error") # pylint: disable=E1101
return "Sorry, something went wrong \N{pensive face}", 500
return "Sorry, something went wrong \N{thinking face}", 500
else:
return f"This page has been seen {page_views} times."

Expand Down
2 changes: 1 addition & 1 deletion web/test/unit/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def test_should_handle_redis_connection_error(mock_redis, http_client):

# Then
assert response.status_code == 500
assert response.text == "Sorry, something went wrong \N{pensive face}"
assert response.text == "Sorry, something went wrong \N{thinking face}"

0 comments on commit afa6e06

Please sign in to comment.