From a8f082ffc3693d6542fca99817ad67482c58f3e9 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 12 Jan 2026 12:59:01 +0100 Subject: [PATCH] slop 2 electric boogaloo --- ex2/ft_custom_errors.py | 2 ++ ex5/ft_garden_management.py | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ex2/ft_custom_errors.py b/ex2/ft_custom_errors.py index eb6cc45..f3d283b 100644 --- a/ex2/ft_custom_errors.py +++ b/ex2/ft_custom_errors.py @@ -29,12 +29,14 @@ def test_custom_errors() -> None: raise PlantError("tomato") except PlantError as e: print(f"Caught PlantError: {e}") + print() print("Testing WaterError...") try: raise WaterError() except WaterError as e: print(f"Caught WaterError: {e}") + print() print("Testing catching all garden errors...") try: diff --git a/ex5/ft_garden_management.py b/ex5/ft_garden_management.py index 8aac568..024bf48 100644 --- a/ex5/ft_garden_management.py +++ b/ex5/ft_garden_management.py @@ -143,18 +143,21 @@ def test_garden_management() -> None: print(f"Added {plant} successfully") except (ValueError, GardenError) as e: print(f"Error adding plant: {e}") + print() - print("\nWatering plants...") + print("Watering plants...") manager.water_plants(["tomato", "lettuce"]) + print() - print("\nChecking plant health...") + print("Checking plant health...") for plant in ["tomato", "lettuce"]: try: manager.check_plant_health(plant) except GardenError as e: print(f"Error checking {plant}: {e}") + print() - print("\nTesting error recovery...") + print("Testing error recovery...") try: raise WaterError() except GardenError as e: -- 2.52.0