Hello! My program goal is take pictures, when sensor is triggered. I use raspbian latest version and have done all updates and so on. It saves pictures directly to network drive. My program works fine for days and suddenly it gets to “tvservice-client: Failed to connect to TV service: -1”. Only reboot seems to work, restart program wont help But how do I catch that error? Programs runs in lxterminal, maybe thats the cause of the issue? I mean I added lines to /home/pi/.bashrc
I could create new exception, but how would I catch that from python shell?
class TvServiceError(Exception):
pass
I am begginner, so dont be harsh . Thank you for helping ;)!