Skip to content

Commit

Permalink
fix panic during normalizing the invalid data (#1698)
Browse files Browse the repository at this point in the history
* fix panic during normalizing the invalid data

* fix yaml load

* change error to warning

* change error code

* optimize code

---------

Co-authored-by: Linlang <[email protected]>
  • Loading branch information
m3ngyang and SunsetWolf authored Jun 1, 2024
1 parent 7db83d8 commit 41b9405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/data_collector/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def _executor(self, file_path: Path):
na_values={col: symbol_na if col == self._symbol_field_name else default_na for col in columns},
)

# NOTE: It has been reported that there may be some problems here, and the specific issues will be dealt with when they are identified.
df = self._normalize_obj.normalize(df)
if df is not None and not df.empty:
if self._end_date is not None:
Expand Down

0 comments on commit 41b9405

Please sign in to comment.