

def dispatch(self):
    'This method actually dispatches to specific transport methods\n        according to command line parameters.\n        '
    err.logger.info(('Starting on %s transport' % self.transport.capitalize()))
    transports = {
        'amqp': self.start_amqp,
        'http': self.start_resourcefile,
        'file': self.start_resourcefile,
    }
    try:
        transports[self.transport]()
    except KeyError as err:
        self.logger.error(('Transport unknown. [%s]' % err))
        self.stop_synapse()
        sys.exit()

dataset/ETHPy150Open comodit/synapse-agent/synapse/dispatcher.py Dispatcher.dispatch/VarMisuse@12/46 `self`->`err`