Skip to content

Commit

Permalink
dummy broadcaster is now compatible with error info events
Browse files Browse the repository at this point in the history
  • Loading branch information
mriehl committed Jan 16, 2014
1 parent b25eac2 commit bf8655b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/python/yadtshell/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def initialize_broadcast_client(): # pragma: no cover

class DummyBroadcaster(object):

def __init__(self):
self.target = 'dummy-target'

def addOnSessionOpenHandler(self, *args, **kwargs):
pass

Expand All @@ -90,6 +93,9 @@ def connect(self):
def publish_cmd(self, *args, **kwargs):
pass

def _sendEvent(self, *args, **kwargs):
pass

broadcasterconf_imported = False
try:
sys.path.append("/etc/yadtbroadcast-client/")
Expand Down

0 comments on commit bf8655b

Please sign in to comment.