mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-05-12 01:03:10 +00:00
Updated fix to be less redundant
This commit is contained in:
parent
e5cba81f07
commit
3f4c9d8e9b
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class WoopraNode(Node):
|
|||
if user is not None:
|
||||
vars['name'] = get_identity(context, 'woopra',
|
||||
self._identify, user)
|
||||
if hasattr(user, "email") and user.email:
|
||||
if getattr(user, "email", None):
|
||||
vars['email'] = user.email
|
||||
return vars
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue