Add try-except