mirror of
https://github.com/laurivosandi/certidude
synced 2025-09-06 22:00:56 +00:00
Add fallbacks for e-mail handling if outbox is not defined
This commit is contained in:
@@ -11,6 +11,10 @@ def publish(event_type, event_data):
|
||||
"""
|
||||
Publish event on push server
|
||||
"""
|
||||
if not config.PUSH_PUBLISH:
|
||||
# Push server disabled
|
||||
return
|
||||
|
||||
if not isinstance(event_data, basestring):
|
||||
from certidude.decorators import MyEncoder
|
||||
event_data = json.dumps(event_data, cls=MyEncoder)
|
||||
|
Reference in New Issue
Block a user