diff options
author | Bastian Bloessl <mail@bastibl.net> | 2019-06-19 16:17:18 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-06-19 13:00:00 -0700 |
commit | 27f980077896b22bd0dcab94114a1df2681d6416 (patch) | |
tree | b781248117d5228ff8e8a5476c8a5e43835b9c9a | |
parent | 0cc238fbb298c3acaed8f3c048d7a51bfa876fd1 (diff) |
ctrlport: monitor error handling
-rw-r--r-- | gnuradio-runtime/python/gnuradio/ctrlport/monitor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py b/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py index f8e5882e59..c9e22198bb 100644 --- a/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py +++ b/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py @@ -41,16 +41,16 @@ class monitor(object): gr.prefs().singleton().set_bool("PerfCounters","export",True) def start(self): - print("monitor::endpoints() = %s" % (gr.rpcmanager_get().endpoints())) try: + print("monitor::endpoints() = %s" % (gr.rpcmanager_get().endpoints())) ep = gr.rpcmanager_get().endpoints()[0] cmd = [self.tool, re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1), re.search(r"-p (\d+)", ep).group(1)] print("running: %s"%(str(cmd))) self.proc = subprocess.Popen(cmd) self.started = True - except (ValueError, OSError): + except: self.proc = None - print("failed to to start ControlPort Monitor on specified port") + print("Failed to to connect to ControlPort. Please make sure that you have Thrift installed and check your firewall rules.") def stop(self): if(self.proc): |