Skip to content

Commit e5dbee3

Browse files
committed
style: update suggestion
Signed-off-by: F.N. Claessen <felix@seita.nl>
1 parent 24fc4d9 commit e5dbee3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flexmeasures/data/models/reporting/pandas_reporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ def _any_empty(objs):
355355
)
356356
except TypeError as exc:
357357
if "unhashable type" in str(exc) and method == "sum":
358-
raise TypeError("Maybe use 'add' instead of 'sum'") from exc
358+
raise TypeError(
359+
"Consider using 'add' instead of 'sum' as the transformation method."
360+
) from exc
359361

360362
previous_df = df_output

0 commit comments

Comments
 (0)