Skip to content

Commit 6044172

Browse files
authored
Load config with app context. (#513)
1 parent 45acb9d commit 6044172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jazzband/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def init_app(self, app):
1919

2020
@signals.job_started.connect_via(namespace)
2121
def job_started(*args, **kwargs):
22-
github.load_config()
22+
with app.app_context():
23+
github.load_config()
2324

2425
for tasks in [member_tasks, project_tasks]:
2526
self.register_tasks(app, tasks)

0 commit comments

Comments
 (0)