fix KeyError in log for deploy errors