Closed nidalf closed 3 years ago
I've invited @eosea to join the repository, so she can review the change. But I think this looks like a good approach.
Moving the res debug printing to the try block should fix the issue. But shouldn't lines 686 and 687 of the original file also be removed?
that is correct. missed that, I've removed it.
Thanks @eosea and @nidalf.
@eosea Thanks for picking that up and @nidalf thanks for fixing.
Move the res variable log printing inside the try block. clearly the case here is that the try block has failed at line 666 and the program is bounced to the exception at line 677. therefore when getting to line 686, the res variable has not been initialized yet. hence no one is likely to use the res variable outside the try block, the debug log lines are moved inside the try block.