local variable 'exception' referenced before assignment
When read call fails, python generate this error.
This is because the exception variable is overridden by the "except as"
When read call fails, python generate this error.
This is because the exception variable is overridden by the "except as"