From 42c3dc20722b75b779b40f9d7f62cc3be651334b Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Fri, 30 Sep 2016 06:37:19 -0400 Subject: [PATCH] Removed an unneeded catch-everything block. --- src/apex/cli.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/apex/cli.py b/src/apex/cli.py index 2f946d8..5a771e7 100644 --- a/src/apex/cli.py +++ b/src/apex/cli.py @@ -219,18 +219,13 @@ def main(verbose, configfile): click.echo('Starting packet processing...') while running: something_read = False - try: - for port_name in port_map.keys(): - port = port_map[port_name] - frame = port['tnc'].read() - if frame: - for plugin_module in plugin_modules: - something_read = True - plugin_module.handle_packet(frame, port, port_name) - except Exception as ex: - # We want to keep this thread alive so long as the application runs. - traceback.print_exc(file=sys.stdout) - echo_colorized_error('Caught exception while reading packet: %s' % str(ex)) + for port_name in port_map.keys(): + port = port_map[port_name] + frame = port['tnc'].read() + if frame: + for plugin_module in plugin_modules: + something_read = True + plugin_module.handle_packet(frame, port, port_name) if something_read is False: time.sleep(1) -- GitLab