# Description
The Playwright locator timed out in line 175 without letting the user know why. The browser failed to log me in to Reddit using the incorrect credentials, which prevented it from accessing the desired post. This fix should be a much more user-friendly approach.
# Issue Fixes
https://github.com/elebumm/RedditVideoMakerBot/issues/1596
None
# Checklist:
- [❌] I am pushing changes to the **develop** branch
- [❌] I am using the recommended development environment
- [✅] I have performed a self-review of my own code
- [✅] I have commented my code, particularly in hard-to-understand areas
- [❌] I have formatted and linted my code using python-black and pylint
- [✅] I have cleaned up unnecessary files
- [✅] My changes generate no new warnings
- [✅] My changes follow the existing code-style
- [✅] My changes are relevant to the project
# Any other information (e.g how to test the changes)
Without my changes, you can set headless to false and run the program. You will notice a timeout exception comfing from playwright without any indications to the user as to why it happened.
With my changes however, it performs a check to see if the reddit login is returning an error message, if it does it let's the user know to fix his credentials inside of config.toml.
* Bot can run multiple instances at the same time
* Delete TTS/__pycache__ directory
* Delete video_creation/__pycache__ directory
* Delete videos.json
* Delete utils/__pycache__ directory
* Create videos.json
* Moved id to utils
* Added cleanup in shutdown and fixed bug
* Removed watermark todo and fixed it
* Delete final_video.py
* Update final_video.py
* Delete video.py
* Update video.py
* Delete id.py
* feat: meaningful error message for bad credentials
* chore: remove comment reference to .env
Co-authored-by: Callum Leslie <git@cleslie.uk>