Private
Public Access
1
0

custom test views repair

This commit is contained in:
Sander Roosendaal
2019-04-07 10:28:03 +02:00
parent a6766bb109
commit 0d68f90066
8 changed files with 56 additions and 23 deletions

View File

@@ -1047,7 +1047,7 @@ from rowers.utils import isprorower,ProcessorCustomerError
# Check if a user is a Pro member
def ispromember(user):
if not user.is_anonymous:
if user and not user.is_anonymous:
try:
r = Rower.objects.get(user=user)
except Rower.DoesNotExist: