Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing invite secret #6013

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ericnewcomer
Copy link
Member

No description provided.

Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (43d6842) to head (5ac5d5c).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #6013   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          546       546           
  Lines        25762     25762           
=========================================
  Hits         25762     25762           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -11,9 +11,9 @@ class TembaInviteMixin:
def get_form_kwargs(self):
if self.request.method == "GET":
# update our session invite on GET
self.request.session["invite_secret"] = self.request.GET.get("invite")
self.request.session["invite_secret"] = self.request.GET.get("invite", None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think None changes anything since it's the default

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...for some reason I thought it threw if it was missing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's one place that happens and it's .pop(key, None)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants