How to make a variable inside a try/except block public? How to make a variable inside a try/except block public? python-3.x python-3.x