From 045e4f7e4cb5122daf1ba8ad9e63192815883556 Mon Sep 17 00:00:00 2001 From: Victor Leikehman Date: Sun, 12 Oct 2014 22:19:01 +0300 Subject: [PATCH] bugfix --- smop/runtime.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smop/runtime.py b/smop/runtime.py index c53ba54e..ff4dccc8 100644 --- a/smop/runtime.py +++ b/smop/runtime.py @@ -482,7 +482,10 @@ def iscellstr_(a): return isinstance(a,cellarray) and all(isinstance(t,str) for t in a) def ischar_(a): - return a.dtype == "|S1" + try: + return a.dtype == "|S1" + except AttributeError: + return False def isempty_(a): try: