Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails when dir not exist? #11

Open
fliiiix opened this issue Dec 29, 2021 · 1 comment
Open

fails when dir not exist? #11

fliiiix opened this issue Dec 29, 2021 · 1 comment

Comments

@fliiiix
Copy link
Member

fliiiix commented Dec 29, 2021

Traceback (most recent call last):
File "/home/l33tname/git/bgt/chapter-marker/chapter_marker/tray.py", line 273, in save
self.markers.persist()
File "/home/l33tname/git/bgt/chapter-marker/chapter_marker/tray.py", line 183, in persist
with open(dbpath, "wb+") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/l33tname/.local/share/chapter-marker/bgt288.db'

@makefu
Copy link
Member

makefu commented Dec 29, 2021

os.makedirs(dirname(self.location,exist_ok=true) vor dem write in self.persist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants