Error Propagation in Generator Functions
Heya 
Trying to get my head around error propagation and have a basic example. In my generator function i want it to fail fast if a user inputs an environment that doesnt exist.
I originally wrote:
which always passes. Writing the code instead as the following gives me results as expected (code fails fast and gives the correct error:
I much prefer the look of the first code block, where did i go wrong with it?
Trying to get my head around error propagation and have a basic example. In my generator function i want it to fail fast if a user inputs an environment that doesnt exist.
I originally wrote:
which always passes. Writing the code instead as the following gives me results as expected (code fails fast and gives the correct error:
I much prefer the look of the first code block, where did i go wrong with it?
