Closed davidmpye closed 3 years ago
FIx issue where the script silently dies.
If logging is enabled, if the PATH for the logfile (logFile = os.getenv('HOME') + "/Safe-Power-Monitor/log.txt") doesnt exist, open fails, as the dir isnt there, and the script throws an exception (without logging it) and terminates.
This fixes it.
FIx issue where the script silently dies.
If logging is enabled, if the PATH for the logfile (logFile = os.getenv('HOME') + "/Safe-Power-Monitor/log.txt") doesnt exist, open fails, as the dir isnt there, and the script throws an exception (without logging it) and terminates.
This fixes it.