gitfiti icon indicating copy to clipboard operation
gitfiti copied to clipboard

Removed a manual file handler pitfall

Open NaelsonDouglas opened this issue 4 years ago • 0 comments

The problem There was a case where the code was using a manual file handler pitfall, where a file stream was being opened and closed manually. But since Python supports automatic stream closing using the block 'with', its better to use it instead of the manual close in order to remove a bug vector.

Solution Refactored the code to remove the manual file handler

NaelsonDouglas avatar Nov 02 '21 23:11 NaelsonDouglas