Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Platypush
platypush
Commits
f7c594cc
Verified
Commit
f7c594cc
authored
Apr 02, 2022
by
Fabio Manganiello
Browse files
get_bus() should return a default RedisBus() instance if the main bus is not registered
parent
b1491b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
platypush/context/__init__.py
View file @
f7c594cc
...
...
@@ -133,8 +133,11 @@ def get_plugin(plugin_name, reload=False):
def
get_bus
()
->
Bus
:
global
main_bus
assert
main_bus
,
'The bus is not registered'
return
main_bus
if
main_bus
:
return
main_bus
from
platypush.bus.redis
import
RedisBus
return
RedisBus
()
def
get_or_create_event_loop
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment