mtyrrell commited on
Commit
205ee42
·
1 Parent(s): ea45e0c
app/__pycache__/models.cpython-311.pyc CHANGED
Binary files a/app/__pycache__/models.cpython-311.pyc and b/app/__pycache__/models.cpython-311.pyc differ
 
app/__pycache__/nodes.cpython-311.pyc CHANGED
Binary files a/app/__pycache__/nodes.cpython-311.pyc and b/app/__pycache__/nodes.cpython-311.pyc differ
 
app/nodes.py CHANGED
@@ -1,4 +1,4 @@
1
- from utils import detect_file_type
2
  from models import GraphState
3
  from datetime import datetime
4
  import tempfile
@@ -344,6 +344,10 @@ async def generate_node_streaming(state: GraphState) -> Generator[GraphState, No
344
  except json.JSONDecodeError:
345
  raise Exception(data_content)
346
 
 
 
 
 
347
 
348
  except Exception as e:
349
  duration = (datetime.now() - start_time).total_seconds()
 
1
+ from utils import detect_file_type, convert_context_to_list
2
  from models import GraphState
3
  from datetime import datetime
4
  import tempfile
 
344
  except json.JSONDecodeError:
345
  raise Exception(data_content)
346
 
347
+ except Exception as fastapi_error:
348
+ # Handle FastAPI-specific errors
349
+ logger.warning(f"FastAPI endpoint failed: {str(fastapi_error)}")
350
+ raise fastapi_error
351
 
352
  except Exception as e:
353
  duration = (datetime.now() - start_time).total_seconds()