vergessen / nzbgetpp

nzbget scripts
7 stars 6 forks source link

Use "with open" #1

Closed Prinz23 closed 10 years ago

Prinz23 commented 10 years ago

In case of an error (example: disk full) Files currently aren't closed and handles aren't released.

So now use "with open" to make sure that they are closed and handles released in any case.

vergessen commented 10 years ago

looks like it works here. THanks