pathwaycom / pathway

Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.
https://pathway.com
Other
4.36k stars 139 forks source link

fix: metadata is none or not #66

Open sarim2000 opened 4 months ago

sarim2000 commented 4 months ago

Introduction

To contribute code to the Pathway project, start by discussing your proposed changes on Discord or by filing an issue. Once approved, follow the fork + pull request model against the main branch, ensuring you've signed the contributor license agreement.

Context

This change addresses a potential issue where the metadata variable might be None. In such cases, attempting to access metadata.value would raise an AttributeError. This fix ensures that we handle the None case gracefully by assigning an empty dictionary, preventing potential runtime errors.

How has this been tested?

Indexing your contents, then stopping server and reindexing.

Types of changes

Related issue(s):

Checklist:

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.