From c78d488083427b0cb731d1e5873e45db83c153f7 Mon Sep 17 00:00:00 2001 From: Marc-Olivier Arsenault Date: Sun, 26 Nov 2023 17:45:38 -0500 Subject: [PATCH] remove unused try catch --- custom_components/moonraker/camera.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/custom_components/moonraker/camera.py b/custom_components/moonraker/camera.py index 19bd58c..80878f6 100755 --- a/custom_components/moonraker/camera.py +++ b/custom_components/moonraker/camera.py @@ -50,13 +50,10 @@ async def async_setup_entry( _LOGGER.info("Could not add any cameras from the API list") if camera_cnt == 0: - try: - _LOGGER.info("No Camera in the list, trying hardcoded") - async_add_entities( - [MoonrakerCamera(config_entry, coordinator, hardcoded_camera, 0)] - ) - except Exception: - _LOGGER.info("Could not add hardcoded camera") + _LOGGER.info("No Camera in the list, trying hardcoded") + async_add_entities( + [MoonrakerCamera(config_entry, coordinator, hardcoded_camera, 0)] + ) async_add_entities( [