Closed CullenLYe closed 2 months ago
Can we fix the bug in the Windows Terminal adapter here instead of wrapping the entire operation with a try-except? Probably by checking with if 'backgroundImage' in profile:
Thank you so much for the feedback @sylveon ! Would this be acceptable?
Yes, that's perfect! Thank you for the contribution :)
Thank you @sylveon ! I appreciate the merge and the help. :)
Currently, if the user tries to input "pokemon -c" when there is no current terminal background, a KeyError is caused.![Screenshot 2024-04-03 111610](https://github.com/LazoCoder/Pokemon-Terminal/assets/59585764/ca8a6d9f-8b02-4154-880f-b4c78c913eb4)
I added a simple try/except block to print out "There is no background to clear." to account for this.![Screenshot 2024-04-03 111747](https://github.com/LazoCoder/Pokemon-Terminal/assets/59585764/b74427a8-3551-4d54-afe7-c3c11418de99)
This also works for slideshow clearing too.