mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-18 11:06:36 +00:00
fixup: remove assignment
This commit is contained in:
parent
60b0fc6440
commit
0486329a8b
@ -232,7 +232,7 @@ def schedule_media_servers_update():
|
|||||||
def contains_http429(q, task_id, /):
|
def contains_http429(q, task_id, /):
|
||||||
from huey.exceptions import TaskException
|
from huey.exceptions import TaskException
|
||||||
try:
|
try:
|
||||||
result = q.result(preserve=True, id=task_id)
|
q.result(preserve=True, id=task_id)
|
||||||
except TaskException as e:
|
except TaskException as e:
|
||||||
return True if 'HTTPError 429: Too Many Requests' in str(e) else False
|
return True if 'HTTPError 429: Too Many Requests' in str(e) else False
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user