Alert Tanner on username mismatch
This commit is contained in:
parent
a0c9c52475
commit
3fa7e86a9f
|
@ -526,7 +526,9 @@ class StatsViewSet(viewsets.ViewSet, List):
|
|||
try:
|
||||
user = User.objects.get(username__iexact=username)
|
||||
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
|
||||
|
||||
models.UsageTrack.objects.create(
|
||||
|
|
Loading…
Reference in New Issue
Block a user