aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py
index 38c9107ee..086ba5812 100644
--- a/mpm/python/usrp_mpm/rpc_server.py
+++ b/mpm/python/usrp_mpm/rpc_server.py
@@ -306,9 +306,18 @@ class MPMServer(RPCServer):
try:
self.log.trace("Reset after updating component? {}".format(reset_now))
if reset_now:
+ # TODO remove this hellspawn
+ self.log.error("Exiting now because you know we have this " \
+ "bug we haven't fixed yet. Just respawn MPM "\
+ "manually for now. Sorry about this. Ahem. " \
+ "Please hit Ctrl-C now.")
+ self.log.critical("Seriously, hit Ctrl-C.")
+ assert False
+ # End of evil code (at least, *this* evil code)
self.reset_mgr()
self.log.debug("Reset the periph manager")
except Exception as ex:
+ raise # This is also part of the evilness TODO remove
self.log.error(
"Error in update_component while resetting: {}".format(
ex