Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
current_user indirectly breaks cron jobs by requiring request context #140
(edited: missing first line of traceback)
in 0.2.7 I would setup a with block with app_context and happily send my emails. This stopped working in 0.2.9 (see trace below) because of this change in get_user():
This is a shot in the dark, but maybe adding:
in front of that block would fix it?
Oh you mean changing the argument to init_app(), just in the cron context?
Here is the traceback from the point we catch the exception: