mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-23 05:09:28 +00:00
Fix using lock/rate limit for requests.*
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user