-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
No description provided.