Skip to content

Commit

Permalink
better exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Sep 27, 2023
1 parent b7bed9c commit e5fabe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/delete-unused-users.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def main():
was_active_last_day = datetime.now().astimezone() - last_activity < timedelta(hours=24)
else:
activity_type = type(last_activity)
print(f"expected datetime.datetime class for last_activity, got {activity_type} instead.")
print(f"For user {user['name']}, expected datetime.datetime class for last_activity but got {activity_type} instead.")
raise

print(f"User: {user['name']}")
Expand Down

0 comments on commit e5fabe6

Please sign in to comment.