Fixed broken context manager __exit__

This commit is contained in:
Joel Collins 2018-11-06 18:49:44 +00:00
parent 028596a80e
commit a7499fa3be
2 changed files with 3 additions and 10 deletions

View file

@ -226,6 +226,7 @@ class StreamObject(object):
def close(self):
"""Both clear the stream, and delete any associated on-disk data"""
log("Closing {}".format(self.id))
self.delete_stream()
if not self.keep_on_disk:
self.delete_file()