fixup: remove assignment

This commit is contained in:
tcely 2025-06-16 13:05:38 -04:00 committed by GitHub
parent 60b0fc6440
commit 0486329a8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -232,7 +232,7 @@ def schedule_media_servers_update():
def contains_http429(q, task_id, /):
from huey.exceptions import TaskException
try:
result = q.result(preserve=True, id=task_id)
q.result(preserve=True, id=task_id)
except TaskException as e:
return True if 'HTTPError 429: Too Many Requests' in str(e) else False
return False