mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-10 13:07:15 +00:00
fix: add timeout when update entity
This commit is contained in:
parent
0b03b2c860
commit
f8b5eb14e6
@ -188,6 +188,7 @@ def scan(library_id: int, force: bool = False):
|
||||
f"{BASE_URL}/entities/{existing_entity['id']}",
|
||||
json=new_entity,
|
||||
params={"trigger_webhooks_flag": "true"},
|
||||
timeout=30
|
||||
)
|
||||
if 200 <= update_response.status_code < 300:
|
||||
tqdm.write(f"Updated file in library: {file_path}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user