Commit 1c6ec9ce authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

don't compare strings using 'is', creffett.

parent 5bc6d4a3
......@@ -274,7 +274,7 @@ def redirection(request, short):
from piwikapi.tracking import PiwikTracker
from django.conf import settings
# First, if PIWIK variables are undefined, don't try to push
if settings.PIWIK_SITE_ID is not "" and settings.PIWIK_URL is not "":
if settings.PIWIK_SITE_ID != "" and settings.PIWIK_URL != "":
piwiktracker = PiwikTracker(settings.PIWIK_SITE_ID, request)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment