Skip to content

Commit 4b05237

Browse files
committed
bugfix for cornercase
1 parent 4f8e175 commit 4b05237

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mmi/runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def process_incoming(model, sockets, data):
9797
var = model.get_var(name).copy()
9898
else:
9999
var = model.get_var(name)
100-
logger.debug("sending variable %s with shape %s", name, var.shape)
100+
if var is None:
101+
logger.warning("Get_var returns None for %s" % name)
102+
else:
103+
logger.debug("sending variable %s with shape %s", name, var.shape)
101104
metadata['name'] = name
102105
# assert socket is req socket
103106

0 commit comments

Comments
 (0)