Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1635] user_dictize() don't crash if no context['user']
Normally 'user' would always be in context (and would be None if no user was logged in) but if user_dictize() was called via an internal function calling a logic action function via get_action(), and that internal function neglected to put 'user': None in context, then user_dictize() would raise KeyError. (An example of this is the get_and_send_notifications_for_all_users() that I'm about to commit after this.) May as well just behave as if 'user': None was in context instead.
- Loading branch information