X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fsimaecho.py;h=ff9782ac7f8ddac3845b1b10ec3fa4d9a3094397;hb=caff603bfa12a698d3063ea3489f333d9cafdbf0;hp=3e6f28147d29d6669b3178929d9ff6b65411b627;hpb=24993cd99b847733894f57fd004ed52b5390244a;p=mpd-sima.git diff --git a/sima/lib/simaecho.py b/sima/lib/simaecho.py index 3e6f281..ff9782a 100644 --- a/sima/lib/simaecho.py +++ b/sima/lib/simaecho.py @@ -67,7 +67,7 @@ class SimaEch(): self.current_element = SimaEch.cache.get(url).elem return try: - self._fetch_ech(payload) + self._fetch_ws(payload) except Timeout: raise WSTimeout('Failed to reach server within {0}s'.format( SOCKET_TIMEOUT)) @@ -75,7 +75,7 @@ class SimaEch(): raise WSError(err) @Throttle(WAIT_BETWEEN_REQUESTS) - def _fetch_ech(self, payload): + def _fetch_ws(self, payload): """fetch from web service""" req = get(self._ressource, params=payload, timeout=SOCKET_TIMEOUT)