It's causing errors when driven from Python. It may be enough though to simply ignore errors in Show Log_file block in case it doesn't exist:
'Show the LOG_FILE as MsgBox if not empty
On Error Resume Next
If ReadFile(LOG_FILE) <> "" Then
Call ShowError(LOG_FILE)
End If
On Error GoTo 0
It's causing errors when driven from Python. It may be enough though to simply ignore errors in Show Log_file block in case it doesn't exist: