Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlei committed Oct 12, 2014
1 parent c50a47e commit 045e4f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smop/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 045e4f7

Please sign in to comment.