Bugfix for creation of temporary files
This commit is contained in:
parent
421c80a617
commit
b992d26138
|
@ -421,9 +421,7 @@ class _Network:
|
|||
"""
|
||||
|
||||
if not file_path:
|
||||
file = tempfile.TemporaryFile(prefix="pylast_tmp_")
|
||||
file.close()
|
||||
file_path = file.name
|
||||
file_path = tempfile.mkstemp(prefix="pylast_tmp_")
|
||||
|
||||
self.cache_backend = _ShelfCacheBackend(file_path)
|
||||
|
||||
|
|
Loading…
Reference in a new issue