Fix logic for bad subscription response
@@ -64,7 +64,8 @@ class SignupFormWithNewsletter(SignupForm):
user.username,
)
- if resp and not resp.ok:
+ else:
+ if not resp.ok:
log.exception(
'Unknown error subscribing user to newsletter. email=%s, user=%s',
self.cleaned_data["email"],
