Alert Tanner on username mismatch

This commit is contained in:
Tanner Collin 2021-04-16 02:56:55 +00:00
parent a0c9c52475
commit 3fa7e86a9f

View File

@ -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(