Browse Source

Do not render None as the value for an empty custom vars dictionary

tags/0.1
Johann Schmitz 4 years ago
parent
commit
e0fbdbb608
Signed by: Johann Schmitz <johann@j-schmitz.net> GPG Key ID: A084064277C501ED
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/pypiwik/tracker.py

+ 2
- 0
src/pypiwik/tracker.py View File

@@ -163,6 +163,8 @@ class PiwikTracker(object):

if property_name in ('page_custom_vars', 'visit_custom_vars'):
value = self._build_cvars(value)
if not value:
continue

d[parameter_name] = value


Loading…
Cancel
Save