mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-19 16:52:30 +01:00
Fix crash related to --latest-stamps (#2056)
This commit is contained in:
parent
ebdc5f1557
commit
e48251e75e
@ -27,7 +27,8 @@ class LatestStamps:
|
|||||||
self.data.read(latest_stamps_file)
|
self.data.read(latest_stamps_file)
|
||||||
|
|
||||||
def _save(self):
|
def _save(self):
|
||||||
makedirs(dirname(self.file), exist_ok=True)
|
if dn := dirname(self.file):
|
||||||
|
makedirs(dn, exist_ok=True)
|
||||||
with open(self.file, 'w') as f:
|
with open(self.file, 'w') as f:
|
||||||
self.data.write(f)
|
self.data.write(f)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user