Skip to content

Commit eeb8053

Browse files
Reinsert type check in merge loop.
1 parent 39c2889 commit eeb8053

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pvlib/bifacial.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def merge(reports):
182182
report = reports[0]
183183
keys_report = list(report.keys())
184184
for other_report in reports[1:]: # loop won't run if len(reports) < 2
185-
for key in keys_report:
186-
report[key] += other_report[key]
185+
if isinstance(other_report, dict):
186+
for key in keys_report:
187+
report[key] += other_report[key]
187188
return report

0 commit comments

Comments
 (0)