##// END OF EJS Templates
vcs: Raise an error in case of unsupported protocol.
Martin Bornhold -
r589:edece7f1 default
parent child Browse files
Show More
@@ -199,10 +199,14 b' def prepare_callback_daemon(extras, prot'
199 199 callback_daemon = DummyHooksCallbackDaemon()
200 200 extras['hooks_module'] = callback_daemon.hooks_module
201 201 else:
202 callback_daemon = (
203 Pyro4HooksCallbackDaemon()
204 if protocol == 'pyro4'
205 else HttpHooksCallbackDaemon())
202 if protocol == 'pyro4':
203 callback_daemon = Pyro4HooksCallbackDaemon()
204 elif protocol == 'http':
205 callback_daemon = HttpHooksCallbackDaemon()
206 else:
207 log.error('Unsupported callback daemon protocol "%s"', protocol)
208 raise Exception('Unsupported callback daemon protocol.')
209
206 210 extras['hooks_uri'] = callback_daemon.hooks_uri
207 211 extras['hooks_protocol'] = protocol
208 212
General Comments 0
You need to be logged in to leave comments. Login now