Skip to content

Commit 87c319d

Browse files
Merge pull request #1838 from IFRCGo/feature/fix-sentry-issue-1
Fix Sentry issue 1
2 parents ef25c1d + 8aa8e9e commit 87c319d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

registrations/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222

2323
def is_valid_domain(email):
24+
if email is None:
25+
return False
2426
domain = email.lower().split('@')[1]
2527
is_allowed = (
2628
DomainWhitelist.objects

0 commit comments

Comments
 (0)