Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:moccu/django-omnibus
Browse files Browse the repository at this point in the history
  • Loading branch information
EnTeQuAk committed Sep 23, 2014
2 parents 5020679 + e089b9a commit 93bfcd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omnibus/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from zmq.eventloop import ioloop

from django.utils.encoding import force_bytes
from django.core.serializers.json import DjangoJSONEncoder

from . import exceptions as ex
from .settings import (
Expand Down Expand Up @@ -104,7 +105,7 @@ def publish(self, channel, payload_type, payload=None, sender=None):
'sender': sender,
'type': payload_type,
'payload': payload
})
}, cls=DjangoJSONEncoder)
))
except (TypeError, ValueError) as e:
raise ex.OmnibusDataException(e)
Expand Down

0 comments on commit 93bfcd7

Please sign in to comment.