Skip to content

Commit bc31cc5

Browse files
committed
fix: adds timeout exception handling
1 parent da43d07 commit bc31cc5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

functions/torboxFunctions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def searchMetadata(query: str, title_data: dict, file_name: str, full_title: str
142142
return base_metadata, True, "Metadata found."
143143
except IndexError:
144144
return base_metadata, False, "No metadata found."
145+
except httpx.TimeoutException:
146+
return base_metadata, False, "Timeout searching metadata."
145147
except Exception as e:
146148
logging.error(f"Error searching metadata: {e}")
147149
logging.error(f"Error searching metadata: {traceback.format_exc()}")

0 commit comments

Comments
 (0)