Alert Tanner on username mismatch
This commit is contained in:
parent
a0c9c52475
commit
3fa7e86a9f
|
@ -526,7 +526,9 @@ class StatsViewSet(viewsets.ViewSet, List):
|
||||||
try:
|
try:
|
||||||
user = User.objects.get(username__iexact=username)
|
user = User.objects.get(username__iexact=username)
|
||||||
except User.DoesNotExist:
|
except User.DoesNotExist:
|
||||||
logging.error('Username not found: ' + username)
|
msg = 'Device tracker problem finding username: ' + username
|
||||||
|
utils.alert_tanner(msg)
|
||||||
|
logger.error(msg)
|
||||||
user = None
|
user = None
|
||||||
|
|
||||||
models.UsageTrack.objects.create(
|
models.UsageTrack.objects.create(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user