Skip to content

Commit

Permalink
continue if we don't find misfit user
Browse files Browse the repository at this point in the history
Shouldn't ever happen, but just in case
  • Loading branch information
brad committed Dec 18, 2014
1 parent 5795a72 commit 30edb66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misfitapp/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def update_summaries(date_ranges):
mfuser = MisfitUser.objects.get(misfit_user_id=ownerId)
except MisfitUser.DoesNotExist:
logger.warning('Count not find Misfit user %s' % ownderId)
continue

misfit = utils.create_misfit(access_token=mfuser.access_token)
summaries = misfit.summary(detail=True, **date_range)
Expand Down

0 comments on commit 30edb66

Please sign in to comment.