Skip to content

Commit

Permalink
change 'is' to '==' for Callable == 'None'
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Sep 28, 2023
1 parent 4200c5e commit 7eb4ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/vector_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_context_stuffed_prompt(self, user_question: str, course_name: str, top_n
def bulk_ingest(self, s3_paths: Union[List[str], str], course_name: str, **kwargs) -> Dict[str, List[str]]:
def _ingest_single(ingest_method: Callable | None, s3_path, *args, **kwargs):
"""Handle running an arbitrary ingest function for an individual file."""
if ingest_method is None:
if ingest_method == None:
success_status['failure_ingest'].append(f"We don't have a ingest method for this filetype: {s3_path}")
print(f"NO INGEST METHOD!! {success_status}")
else:
Expand Down

0 comments on commit 7eb4ecd

Please sign in to comment.