Skip to content

Commit 37070e9

Browse files
committed
update doc string and remove obfuscation of unknown errors
1 parent 195e321 commit 37070e9

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

scripts/shared.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ def open_data_file(
7474
index_col=None,
7575
):
7676
"""
77-
Open a CSV data file safely and convert
78-
expected errors into QuantifyingException.
79-
This function is shared so all process/report
80-
scripts use the same error behavior.
77+
Open a CSV data file safely and convert expected errors into
78+
QuantifyingException. This shared function ensures all process/report
79+
scripts benefit from the same error handling.
8180
"""
8281
try:
8382
# Reading the file
@@ -98,12 +97,6 @@ def open_data_file(
9897
message=f"Permission denied when accessing data file: {file_path}",
9998
exit_code=1,
10099
)
101-
# Any other unexpected issue
102-
except Exception as e:
103-
raise QuantifyingException(
104-
message=f"Unexpected error opening file '{file_path}': {str(e)}",
105-
exit_code=1,
106-
)
107100

108101

109102
def git_fetch_and_merge(args, repo_path, branch=None):

0 commit comments

Comments
 (0)