Fix AttributeError in hyperparameter parsing

Handle NaN values from pandas when CSV cells are empty - convert to string before calling strip() method.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
warproxxx
2025-06-22 10:20:07 -07:00
parent ee24553856
commit ed7a1f9be3
+4 -2
View File
@@ -45,8 +45,10 @@ def get_sheet_df(read_only=None):
for r in records:
# Update current_type only when we have a non-empty type value
if r['type'] and r['type'].strip():
current_type = r['type'].strip()
# Handle both string and NaN values from pandas
type_value = r['type']
if type_value and str(type_value).strip() and str(type_value) != 'nan':
current_type = str(type_value).strip()
# Skip rows where we don't have a current_type set
if current_type: