This commit is contained in:
Joseph Schorr 2014-01-24 20:34:18 -05:00
parent c18212f477
commit b1ec9c4469

View file

@ -28,7 +28,7 @@ def abort(status_code, message=None, **kwargs):
mixpanel.track(auth_user.username, 'http_error', params)
message = '%s (user: %s)' % (message, auth_user.username)
elif auth_token:
mixpanel.track(auth_token.core, 'http_error', params)
mixpanel.track(auth_token.code, 'http_error', params)
message = '%s (token: %s)' % (message,
auth_token.friendly_name or auth_token.code)