diff options
author | Brennan Ashton <bashton@brennanashton.com> | 2018-11-14 18:02:31 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-15 15:44:05 -0800 |
commit | b0f69ff0e38b8a8a5729e2131e90c55be77bb12a (patch) | |
tree | f69ea37f6ccb3338fc92c930b1c0a62a37cbd1a7 /gr-fec | |
parent | 2f66412afaca4a42319c666958c89827edd8f2f3 (diff) |
gr-fec: Improve handeling of failure opening alist file
Diffstat (limited to 'gr-fec')
-rw-r--r-- | gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py | 4 |
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) |