Skip to content

Commit 6ed53db

Browse files
authored
Update api.py
Undoubled exception handling
1 parent bf6eff1 commit 6ed53db

File tree

1 file changed

+1
-7
lines changed
  • custom_components/apsystems_ecu_proxy

1 file changed

+1
-7
lines changed

custom_components/apsystems_ecu_proxy/api.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,7 @@ async def data_received(
185185
traceback.format_exc(),
186186
data,
187187
)
188-
except Exception:
189-
_LOGGER.warning(
190-
"Exception error with %s where data is: %s",
191-
traceback.format_exc(), # Formats the exception traceback
192-
data, # The data you're working with
193-
)
194-
188+
195189
def get_model(self, model_code: str) -> str:
196190
"""Get model from model code."""
197191
if model := ECU_MODELS_216.get(model_code) or ECU_MODELS_215.get(

0 commit comments

Comments
 (0)