Closed skadogg closed 6 months ago
you should just be able to do this with try except blocks
I bet you're right, @r3dp0int. Sounds like a good first issue 😉 for someone who wants an easy way to begin contributing. Thanks for the suggestion!
Which Python version are you using for this project?
I'm pretty new to Python, so I'm using 3.12, though I don't know that there's anything too special going on that it wouldn't work with one or two earlier versions. I haven't tested with anything else yet.
I've created a check for my data directory which will create it if it doesn't exist, and have implemented a check for the .bin file. Will finish implementing creation of the blank .bin file then issue a pull request for you 😄
We need to test for the existance of saved_data.bin before trying to read from it. If it's not there, show_db should be initialized as an empty list.