mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +00:00
Move read_text to executor (#5688)
* Move read_text to executor * Fix issues found by coderabbit * formated to formatted * switch to async_capture_exception * Find and replace got one too many * Update patch mock to async_capture_exception * Drop Sentry capture from format_message The error handling got introduced in #2052, however, #2100 essentially makes sure there will never be a byte object passed to this function. And even if, the Sentry aiohttp plug-in will properly catch such an exception. --------- Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
@@ -19,9 +19,3 @@ def test_format_message_port_alternative():
|
||||
format_message(message)
|
||||
== "Port '80' is already in use by something else on the host."
|
||||
)
|
||||
|
||||
|
||||
def test_exeption():
|
||||
"""Tests the exception handling."""
|
||||
message = b"byte"
|
||||
assert format_message(message) == message
|
||||
|
||||
Reference in New Issue
Block a user