From 659c4e42173b377e93fcd86a9f11e58bfc891648 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 2 Aug 2017 10:00:16 -0400 Subject: [PATCH] Avoid trace on deleted node If a node is deleted, act similar to if it were defined with no console.method, to avoid superfluous trace output. In the future, it may make sense to filter out nodes with no console.method earlier, since a fair amount of startup work is done that is ultimately ignored for situations where console is not enabled. --- confluent_server/confluent/consoleserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/consoleserver.py b/confluent_server/confluent/consoleserver.py index bcb39dd7..78d4ac7b 100644 --- a/confluent_server/confluent/consoleserver.py +++ b/confluent_server/confluent/consoleserver.py @@ -312,7 +312,7 @@ class ConsoleHandler(object): self._console = plugin.handle_path( self._plugin_path.format(self.node), "create", self.cfgmgr) - except exc.NotImplementedException: + except (exc.NotImplementedException, exc.NotFoundException): self._console = None except: _tracelog.log(traceback.format_exc(), ltype=log.DataTypes.event,