Adjust code

This commit is contained in:
angelblue05 2016-08-30 00:26:57 -05:00
parent a331f7d43d
commit 9453417da0
1 changed files with 3 additions and 4 deletions

View File

@ -301,9 +301,8 @@ class PlaybackUtils():
del response
raise
else:
f = open(path, 'wb')
with open(path, 'wb') as f:
f.write(response.content)
f.close()
del response
return path