pull/1056/head
Kegan Dougal 2016-08-30 16:30:12 +01:00
parent e82247f990
commit 16b652f0a3
2 changed files with 3 additions and 1 deletions

View File

@ -153,6 +153,7 @@ class ApplicationServiceApi(SimpleHttpClient):
def get_3pe_protocol(self, service, protocol):
if service.url == "":
defer.returnValue({})
@defer.inlineCallbacks
def _get():
uri = "%s%s/thirdparty/protocol/%s" % (

View File

@ -135,7 +135,8 @@ def _load_appservice(hostname, as_info, config_filename):
if as_info["url"] == "":
logger.info(
"(%s) Explicitly empty 'url' provided. This application service will not receive events or queries.",
"(%s) Explicitly empty 'url' provided. This application service " +
"will not receive events or queries.",
config_filename,
)
return ApplicationService(