summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
index 6cf0dee09e..4b18a90408 100644
--- a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
+++ b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
@@ -65,7 +65,9 @@ def write_alist_file(filename, H, verbose=0):
try:
myfile = open(filename,'w')
- except:
+ except EnvironmentError:
+ # This is an api, we should be using a logging interface and not
+ # terminating the application directly.
sys.stderr.write("Could not open output file '{0}'".format(filename))
sys.exit(1)