Skip to content

Commit ea9afd8

Browse files
Update pvlib/iotools/pan_binary.py
Co-authored-by: Echedey Luis <80125792+echedey-ls@users.noreply.github.com>
1 parent 9689fe0 commit ea9afd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pvlib/iotools/pan_binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,6 @@ def read_pan_binary(filename):
397397
)
398398

399399
except (IndexError, TypeError, struct.error) as e:
400-
return {"error": f"Failed to parse binary PAN file: {e}"}
400+
raise ValueError(f"Unable to parse binary PAN file. Is this a binary file and compatible with PVsyst up to 6.39?" from e
401401

402402
return data

0 commit comments

Comments
 (0)