Skip to content

Commit

Permalink
warn when get_previous_dtype fails to get previous value
Browse files Browse the repository at this point in the history
  • Loading branch information
rwedge committed Feb 24, 2025
1 parent ef0e2f5 commit d5680f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import os
import sys
import warnings
from datetime import date
from functools import lru_cache
from pathlib import Path
Expand All @@ -29,7 +30,9 @@ def get_previous_dtype_result(dtype, sdtype, method, python_version=PYTHON_VERSI
filtered_row = df[(df['dtype'] == dtype) & (df['sdtype'] == sdtype)]
value = filtered_row[method].astype('boolean')[0]
previously_seen = True
except (IndexError, KeyError):
except (IndexError, KeyError) as e:
warnings.warn(e)
warnings.warn(filtered_row[method])
value = False
previously_seen = False

Expand Down

0 comments on commit d5680f4

Please sign in to comment.