When starting the Daemon for the first time, the pidfile is auto-created with empty content, however, the exception handling does not capture casting an empty string to int.
Currently, the following exception is raised.
Traceback (most recent call last):
File "callback_listener.py", line 46, in <module>
daemon.start()
File "~/sqs_listener/daemon.py", line 85, in start
pid = int(pf.read().strip())
ValueError: invalid literal for int() with base 10: ''
When starting the Daemon for the first time, the pidfile is auto-created with empty content, however, the exception handling does not capture casting an empty string to int.
Currently, the following exception is raised.