Skip to content

Commit 929b7ea

Browse files
committed
fixed exception handling for python > 2.6
1 parent b597d01 commit 929b7ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rivescript/rivescript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ def _expand_array(self, array_name):
19641964
try:
19651965
ret = self._do_expand_array(array_name)
19661966
except Exception as e:
1967-
self._warn("Error expanding array '%s': %s" % (array_name, e.message))
1967+
self._warn("Error expanding array '%s': %s" % (array_name, str(e)))
19681968
# return self._arrays[array_name]
19691969
return ret
19701970

0 commit comments

Comments
 (0)