diff options
author | Brennan Ashton <bashton@brennanashton.com> | 2018-11-14 18:09:01 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-15 15:44:05 -0800 |
commit | 1a56876a4757a56500fb6c9b66e7c145ed0976d1 (patch) | |
tree | b7c2da52609d8e2165ef6ce9a63f9a756770c650 /gr-uhd/python/uhd | |
parent | 7a8cab2809e613af811bdb86d6a1021eacf58e19 (diff) |
gr-uhd: Remove blind exception handling for argument type casting
Diffstat (limited to 'gr-uhd/python/uhd')
-rw-r--r-- | gr-uhd/python/uhd/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-uhd/python/uhd/__init__.py b/gr-uhd/python/uhd/__init__.py index 9850f612fb..c5c05ddb2e 100644 --- a/gr-uhd/python/uhd/__init__.py +++ b/gr-uhd/python/uhd/__init__.py @@ -115,10 +115,10 @@ def _prepare_uhd_swig(): (0, 'device_addr', device_addr), (1, 'io_type', io_type), ): - try: - if len(args) > index: args[index] = cast(args[index]) - if key in kwargs: kwargs[key] = cast(kwargs[key]) - except: pass + if len(args) > index: + args[index] = cast(args[index]) + if key in kwargs: + kwargs[key] = cast(kwargs[key]) #don't pass kwargs, it confuses swig, map into args list: for key in ('device_addr', 'stream_args', 'issue_stream_cmd_on_start', 'tsb_tag_name', 'msgq'): |