Skip to content

Commit

Permalink
♻️ Refactored logging of the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinpurtak committed Nov 4, 2024
1 parent 4f67506 commit 135bafa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/viadot/sources/sap_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,10 @@ def to_df(self, tests: dict | None = None) -> pd.DataFrame: # noqa: C901, PLR09
try:
unique_column_len = self._unique_columns_len[col]
except KeyError:
logger.exception("Missing rfc unique columns length!")
logger.exception(
f"Missing rfc unique column: {col} length from SAP metadata!"
)
raise
actual_length_of_field = df_tmp[col].str.len()
# Check which rows column values has less characters
# then is defined in SAP data type for each column
Expand Down

0 comments on commit 135bafa

Please sign in to comment.