Adjust code
This commit is contained in:
parent
a331f7d43d
commit
9453417da0
|
@ -301,10 +301,9 @@ class PlaybackUtils():
|
|||
del response
|
||||
raise
|
||||
else:
|
||||
f = open(path, 'wb')
|
||||
f.write(response.content)
|
||||
f.close()
|
||||
del response
|
||||
with open(path, 'wb') as f:
|
||||
f.write(response.content)
|
||||
del response
|
||||
|
||||
return path
|
||||
|
||||
|
|
Loading…
Reference in New Issue