Endilll / vapoursynth-preview

Preview for VapourSynth scripts
Apache License 2.0
69 stars 21 forks source link

Yaml storage is not closed after reading #36

Closed begna112 closed 3 years ago

begna112 commented 3 years ago
C:\Users/begna112/Documents/GitHub/vapoursynth-preview\vspreview\main.py:569: ResourceWarning: unclosed file <_io.TextIOWrapper.TextIOWrapper name='\\\\rui\\Fansubbing\\DDY\\2021-Summer\\Maid Dragon S2\\06\\encode\\.vspreview\\maidoragon2_0' encoding='cp6.yml' mode='r' encoding='cp1252'>
  yaml.load(storage_path.open(), Loader=yaml.Loader)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

https://github.com/Endilll/vapoursynth-preview/issues/35#issuecomment-898929165

Endilll commented 3 years ago

Nice catch. I'm indeed opening .yml file without closing it. It's harmless, though