We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b6bd9f + 2c3906c commit 33816bcCopy full SHA for 33816bc
ellar/events/build.py
@@ -56,14 +56,12 @@ def _reg() -> t.Any:
56
functools.partial(_on_context, f, _func_args)
57
)
58
59
- if _injector_context_var.get() is empty and not app_ready:
+ if _injector_context_var.get() is empty:
60
# Defer till when injector_context is ready
61
return _reg()
62
- elif (
63
- _injector_context_var.get() is not empty
64
- and app_ready
65
- and fail_silently(_injector_context_var.get().get, "App") is None
66
- ):
+
+ app = fail_silently(_injector_context_var.get().get, "App")
+ if _injector_context_var.get() is not empty and app_ready and app is None:
67
# Defer till when the app is ready
68
69
0 commit comments