We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9081e4 commit 618533aCopy full SHA for 618533a
main.py
@@ -6,6 +6,7 @@
6
import os
7
import socket
8
import sys
9
+import time
10
import pidfile
11
12
# Desktop Credentials
@@ -72,6 +73,8 @@
72
73
74
except Exception as e:
75
logger.error(e)
- logger.warning("Python code has reached end of script, the code will no logner talk to Node-Red")
76
+ logger.warning("Python code has reached end of script, "
77
+ "the code will no longer talk to Node-Red")
78
logger.info(f"Attempting to restart loop! Error Number: {ERROR_COUNT}")
79
+ time.sleep(5) # Sleep for 5 seconds before restarting loop, the ip address might not exist yet
80
ERROR_COUNT = ERROR_COUNT+1
0 commit comments