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: