W4_A2_Ex-1_local variable 'A' referenced before assignment

I encountered an error in the first exercise, “local variable ‘A’ referenced before assignment”, how can I solve it? I think I have passed the correct parameter into the function

in two_layer_model(X, Y, layers_dims, learning_rate, num_iterations, print_cost)
47 # A2, cache2 = …
48 # YOUR CODE STARTS HERE
—> 49 A1, cache1 = linear_activation_forward(X, W1, b1, relu)
50 A2, cache2 = linear_activation_forward(A1, W2, b2, sigmoid)
51

~/work/release/W4A2/dnn_app_utils_v3.py in linear_activation_forward(A_prev, W, b, activation)
212 print(“\033[91mError! Please make sure you have passed the value correctly in the "activation" parameter”)
213
→ 214 assert (A.shape == (W.shape[0], A_prev.shape[1]))
215 cache = (linear_cache, activation_cache)
216

UnboundLocalError: local variable ‘A’ referenced before assignment

You must pass the activation names in a string format.