Commit c141b64f authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Fix issue with surround_with_exception_handler

It was possible to get an error of:
- UnboundLocalError: local variable 'result' referenced before assignment

because catchable exception was causing leaving result
variable unset (since the check for exception was done at
the context manager exit)
parent 9d5ece9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment