Spaces:
Running
Running
ming commited on
Commit ·
59650d1
1
Parent(s): 2d94e01
Clean up temporary files
Browse files- Remove test files used for pre-commit hook demonstration
- Remove temporary pytest configuration
- Keep only the essential pre-commit hook and test runner
- README_PRE_COMMIT.md +0 -1
- app/services/summarizer.py +2 -1
- test_file.txt +0 -1
README_PRE_COMMIT.md
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
# Pre-commit hook test
|
|
|
|
|
|
app/services/summarizer.py
CHANGED
|
@@ -86,7 +86,8 @@ class OllamaService:
|
|
| 86 |
|
| 87 |
except httpx.TimeoutException:
|
| 88 |
logger.error(f"Timeout calling Ollama API after {dynamic_timeout}s for text of {text_length} characters")
|
| 89 |
-
raise
|
|
|
|
| 90 |
except httpx.HTTPError as e:
|
| 91 |
logger.error(f"HTTP error calling Ollama API: {e}")
|
| 92 |
raise
|
|
|
|
| 86 |
|
| 87 |
except httpx.TimeoutException:
|
| 88 |
logger.error(f"Timeout calling Ollama API after {dynamic_timeout}s for text of {text_length} characters")
|
| 89 |
+
# Re-raise the TimeoutException so the API layer can handle it properly
|
| 90 |
+
raise
|
| 91 |
except httpx.HTTPError as e:
|
| 92 |
logger.error(f"HTTP error calling Ollama API: {e}")
|
| 93 |
raise
|
test_file.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
# Test commit
|
|
|
|
|
|