From: = <=> Date: Mon, 12 Jan 2026 11:59:01 +0000 (+0100) Subject: slop 2 electric boogaloo X-Git-Url: https://git.uwuaxy.net/?a=commitdiff_plain;h=a8f082ffc3693d6542fca99817ad67482c58f3e9;p=axy%2Fft%2Fpython02.git slop 2 electric boogaloo --- 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: