Skip to content
Snippets Groups Projects
Commit adf53f04 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

appease pep8

parent c435bfee
Branches
Tags
No related merge requests found
...@@ -60,7 +60,7 @@ class ApplicationServiceApi(SimpleHttpClient): ...@@ -60,7 +60,7 @@ class ApplicationServiceApi(SimpleHttpClient):
super(ApplicationServiceApi, self).__init__(hs) super(ApplicationServiceApi, self).__init__(hs)
self.clock = hs.get_clock() self.clock = hs.get_clock()
self.protocol_meta_cache = ResponseCache(hs, timeout_ms=1*HOUR_IN_MS) self.protocol_meta_cache = ResponseCache(hs, timeout_ms=HOUR_IN_MS)
@defer.inlineCallbacks @defer.inlineCallbacks
def query_user(self, service, user_id): def query_user(self, service, user_id):
...@@ -145,8 +145,7 @@ class ApplicationServiceApi(SimpleHttpClient): ...@@ -145,8 +145,7 @@ class ApplicationServiceApi(SimpleHttpClient):
defer.returnValue((yield self.get_json(uri, {}))) defer.returnValue((yield self.get_json(uri, {})))
except Exception as ex: except Exception as ex:
logger.warning("query_3pe_protocol to %s threw exception %s", logger.warning("query_3pe_protocol to %s threw exception %s",
uri, ex uri, ex)
)
defer.returnValue({}) defer.returnValue({})
key = (service.id, protocol) key = (service.id, protocol)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment