Fix using lock/rate limit for requests.*

This commit is contained in:
Jesse Mullan
2014-11-23 23:48:28 -08:00
parent 40884a7588
commit 9e6f2a4952

View File

@@ -57,7 +57,7 @@ def request_response(url, method="get", auto_raise=True,
try:
# Request URL and wait for response
if lock is not None:
with lock:
logger.debug("Requesting URL via %s method: %s", method.upper(), url)
response = request_method(url, **kwargs)