Failed to retrieve executor log: local variable 'executor' referenced before assignment

Failed to retrieve executor log: local variable ‘executor’ referenced before assignment

Is not the error self-explanatory?