Skip to content

Commit

Permalink
Fixed an issue with node class loading
Browse files Browse the repository at this point in the history
  • Loading branch information
keiffster committed Sep 22, 2017
1 parent 53661da commit 804a278
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/programy/parser/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def process_config_line(self, line):
return
class_name = splits[1].strip()
if logging.getLogger().isEnabledFor(logging.DEBUG): logging.debug("Pre-instantiating %s Node [%s]"%(self._type, class_name))
self._nodes_config[node_name] = ClassLoader.instantiate_class(class_name)
try:
self._nodes_config[node_name] = ClassLoader.instantiate_class(class_name)
except Exception as excep:
if logging.getLogger().isEnabledFor(logging.ERROR): logging.error("Failed to pre-instantiating %s Node [%s]" % (self._type, class_name))

def valid_config_line(self, line):

Expand Down

0 comments on commit 804a278

Please sign in to comment.