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 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 httpx.HTTPError(f"Ollama API timeout after {dynamic_timeout}s. Text may be too long or complex.")
 
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